Skip to content

Commit 52281d6

Browse files
committed
test(ls): fix failing tests
Refs #2033
1 parent 852f95a commit 52281d6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import keysPatternLint from './keys--pattern';
22
import valuesTypeLint from './values--type';
33

4-
const lints = [keysPatternLint, valuesTypeLint];
4+
const lints = [valuesTypeLint, keysPatternLint];
55

66
export default lints;

packages/apidom-ls/src/config/openapi/paths/lint/keys--pattern.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import { LinterMeta } from '../../../../apidom-language-types';
44
const keysPatternLint: LinterMeta = {
55
code: ApilintCodes.OPENAPI_3_0_PATHS_KEYS_PATTERN,
66
source: 'apilint',
7-
message: 'Paths Object keys must match the regular expression: `^/.*$`',
7+
message: 'Paths Object keys must match the regular expression: `^/`',
88
severity: 1,
9-
linterFunction: 'apilintMembersKeysRegex',
10-
linterParams: ['^\\/.*$'],
9+
linterFunction: 'apilintKeysRegex',
10+
linterParams: ['^/'],
1111
marker: 'key',
1212
data: {},
1313
};

0 commit comments

Comments
 (0)