diff --git a/packages/apidom-ls/src/config/codes.ts b/packages/apidom-ls/src/config/codes.ts index ef4a4db380..3ace639ce8 100644 --- a/packages/apidom-ls/src/config/codes.ts +++ b/packages/apidom-ls/src/config/codes.ts @@ -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, @@ -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, diff --git a/packages/apidom-ls/test/openapi-json.ts b/packages/apidom-ls/test/openapi-json.ts index 2c8a8c0e1b..bb988fe25b 100644 --- a/packages/apidom-ls/test/openapi-json.ts +++ b/packages/apidom-ls/test/openapi-json.ts @@ -656,7 +656,7 @@ describe('apidom-ls', function () { }, message: "should always have a 'version'", severity: 1, - code: 5010801, + code: 5020601, source: 'apilint', data: { quickFix: [