From 46348677ad82c4244eaf8108cbe8794eb75f9cab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Gorej?= Date: Tue, 1 Aug 2023 14:34:57 +0200 Subject: [PATCH] fix(ls): fix linting code consistency (#3005) Refs 4e2b56bb0507b13bf31eee59df13c14949f7e81e --- packages/apidom-ls/src/config/codes.ts | 2 +- packages/apidom-ls/test/validate.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/apidom-ls/src/config/codes.ts b/packages/apidom-ls/src/config/codes.ts index d5b274092..786af59db 100644 --- a/packages/apidom-ls/src/config/codes.ts +++ b/packages/apidom-ls/src/config/codes.ts @@ -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, diff --git a/packages/apidom-ls/test/validate.ts b/packages/apidom-ls/test/validate.ts index b3aadcadc..f50aab9fc 100644 --- a/packages/apidom-ls/test/validate.ts +++ b/packages/apidom-ls/test/validate.ts @@ -3237,7 +3237,7 @@ 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: {}, }, @@ -3245,7 +3245,7 @@ describe('apidom-ls-validate', function () { 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: {}, },