File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
packages/apidom-ls/src/config/openapi Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ const allowedFields3_0Lint: LinterMeta = {
10
10
linterFunction : 'allowedFields' ,
11
11
linterParams : [ [ 'propertyName' , 'mapping' ] ] ,
12
12
marker : 'key' ,
13
+ targetSpecs : [
14
+ { namespace : 'openapi' , version : '3.0.0' } ,
15
+ { namespace : 'openapi' , version : '3.0.1' } ,
16
+ { namespace : 'openapi' , version : '3.0.2' } ,
17
+ { namespace : 'openapi' , version : '3.0.3' } ,
18
+ ] ,
13
19
} ;
14
20
15
21
export default allowedFields3_0Lint ;
Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ import { LinterMeta } from '../../../../apidom-language-types';
4
4
const keysPatternLint : LinterMeta = {
5
5
code : ApilintCodes . OPENAPI3_0_PATHS_KEYS_PATTERN ,
6
6
source : 'apilint' ,
7
- message : 'Paths Object keys must match the regular expression: `^/ `' ,
7
+ message : 'Paths Object keys must match the regular expression: `^(/|x-) `' ,
8
8
severity : 1 ,
9
9
linterFunction : 'apilintKeysRegex' ,
10
- linterParams : [ '^/ ' ] ,
10
+ linterParams : [ '^(/|x-) ' ] ,
11
11
marker : 'key' ,
12
12
data : { } ,
13
13
} ;
You can’t perform that action at this time.
0 commit comments