Skip to content

Commit

Permalink
fix(ls): fix wrongly assigned codes
Browse files Browse the repository at this point in the history
Closes #2109
  • Loading branch information
char0n committed Oct 7, 2022
1 parent c3346ad commit 125ae06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/apidom-ls/src/config/codes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -588,8 +588,6 @@ enum ApilintCodes {
OPENAPI3_0_OPEN_API_FIELD_TAGS_TYPE = 5010600,
OPENAPI3_0_OPEN_API_FIELD_TAGS_ITEMS_TYPE,
OPENAPI3_0_OPEN_API_FIELD_EXTERNAL_DOCS_TYPE = 5010700,
OPENAPI3_0_INFO_FIELD_VERSION_TYPE = 5010800,
OPENAPI3_0_INFO_FIELD_VERSION_REQUIRED,

OPENAPI3_0_INFO = 5020000,
OPENAPI3_0_INFO_FIELD_TITLE_TYPE = 5020100,
Expand All @@ -599,6 +597,8 @@ enum ApilintCodes {
OPENAPI3_0_INFO_FIELD_TERMS_OF_SERVICE_FORMAT_URI,
OPENAPI3_0_INFO_FIELD_CONTACT_TYPE = 5020400,
OPENAPI3_0_INFO_FIELD_LICENSE_TYPE = 5020500,
OPENAPI3_0_INFO_FIELD_VERSION_TYPE = 5020600,
OPENAPI3_0_INFO_FIELD_VERSION_REQUIRED,

OPENAPI3_0_CONTACT = 5030000,
OPENAPI3_0_CONTACT_FIELD_NAME_TYPE = 5030100,
Expand Down
2 changes: 1 addition & 1 deletion packages/apidom-ls/test/openapi-json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ describe('apidom-ls', function () {
},
message: "should always have a 'version'",
severity: 1,
code: 5010801,
code: 5020601,
source: 'apilint',
data: {
quickFix: [
Expand Down

0 comments on commit 125ae06

Please sign in to comment.