Skip to content

Commit

Permalink
fix(ls): fix linting code consistency (#3005)
Browse files Browse the repository at this point in the history
Refs 4e2b56b
  • Loading branch information
char0n authored Aug 1, 2023
1 parent 42af8e4 commit 4634867
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/apidom-ls/src/config/codes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ enum ApilintCodes {

OPENAPI3_1_SERVER_VARIABLE = 7060000,
OPENAPI3_1_SERVER_VARIABLE_FIELD_ENUM_TYPE = 7060100,
OPENAPI3_1_SERVER_VARIABLE_FIELD_DEFAULT_IN_ENUM,
OPENAPI3_1_SERVER_VARIABLE_FIELD_DEFAULT_IN_ENUM = 7060200,

OPENAPI3_1_PARAMETER = 7070000,
OPENAPI3_1_PARAMETER_FIELD_CONTENT_ALLOWED_FIELDS = 7070100,
Expand Down
4 changes: 2 additions & 2 deletions packages/apidom-ls/test/validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3237,15 +3237,15 @@ describe('apidom-ls-validate', function () {
range: { start: { line: 16, character: 17 }, end: { line: 16, character: 22 } },
message: "'default' value must exist in the enum's values.",
severity: 1,
code: 7060101,
code: 7060200,
source: 'apilint',
data: {},
},
{
range: { start: { line: 19, character: 17 }, end: { line: 19, character: 21 } },
message: "'default' value must exist in the enum's values.",
severity: 1,
code: 7060101,
code: 7060200,
source: 'apilint',
data: {},
},
Expand Down

0 comments on commit 4634867

Please sign in to comment.