Skip to content

Commit

Permalink
feat(ls): add rules for OpenAPI 2.0 Header Object
Browse files Browse the repository at this point in the history
Refs #3610
  • Loading branch information
char0n committed Jan 15, 2024
1 parent 20e54d9 commit 1ae31b7
Show file tree
Hide file tree
Showing 30 changed files with 1,088 additions and 12 deletions.
30 changes: 27 additions & 3 deletions packages/apidom-ls/src/config/codes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -749,9 +749,12 @@ enum ApilintCodes {
OPENAPI2_ITEMS_FIELD_EXCLUSIVE_MINIMUM_TYPE = 3110800,
OPENAPI2_ITEMS_FIELD_MAX_LENGTH_TYPE = 3110900,
OPENAPI2_ITEMS_FIELD_MIN_LENGTH_TYPE = 3111000,
OPENAPI2_ITEMS_FIELD_UNIQUE_ITEMS_TYPE = 3111100,
OPENAPI2_ITEMS_FIELD_ENUM_TYPE = 3111200,
OPENAPI2_ITEMS_FIELD_MULTIPLE_OF_TYPE = 3111300,
OPENAPI2_ITEMS_FIELD_PATTERN_TYPE = 3111100,
OPENAPI2_ITEMS_FIELD_MAX_ITEMS_TYPE = 3111200,
OPENAPI2_ITEMS_FIELD_MIN_ITEMS_TYPE = 3111300,
OPENAPI2_ITEMS_FIELD_UNIQUE_ITEMS_TYPE = 3111400,
OPENAPI2_ITEMS_FIELD_ENUM_TYPE = 3111500,
OPENAPI2_ITEMS_FIELD_MULTIPLE_OF_TYPE = 3111600,

OPENAPI2_RESPONSE = 3120000,
OPENAPI2_RESPONSE_FIELD_DESCRIPTION_TYPE = 3120100,
Expand Down Expand Up @@ -810,6 +813,27 @@ enum ApilintCodes {
OPENAPI2_SECURITY_SCHEME_FIELD_SCOPES_TYPE = 3220800,
OPENAPI2_SECURITY_SCHEME_FIELD_SCOPES_REQUIRED,

OPENAPI2_HEADER = 3230000,
OPENAPI2_HEADER_FIELD_DESCRIPTION_TYPE = 3230100,
OPENAPI2_HEADER_FIELD_TYPE_EQUALS = 3230200,
OPENAPI2_HEADER_FIELD_TYPE_REQUIRED,
OPENAPI2_HEADER_FIELD_FORMAT_TYPE = 3230300,
OPENAPI2_HEADER_FIELD_ITEMS_TYPE = 3230400,
OPENAPI2_HEADER_FIELD_ITEMS_REQUIRED,
OPENAPI2_HEADER_FIELD_COLLECTION_FORMAT_EQUALS = 3230500,
OPENAPI2_HEADER_FIELD_MAXIMUM_TYPE = 3230600,
OPENAPI2_HEADER_FIELD_EXCLUSIVE_MAXIMUM_TYPE = 3230700,
OPENAPI2_HEADER_FIELD_MINIMUM_TYPE = 3230800,
OPENAPI2_HEADER_FIELD_EXCLUSIVE_MINIMUM_TYPE = 3230900,
OPENAPI2_HEADER_FIELD_MAX_LENGTH_TYPE = 3231000,
OPENAPI2_HEADER_FIELD_MIN_LENGTH_TYPE = 3231100,
OPENAPI2_HEADER_FIELD_PATTERN_TYPE = 3231200,
OPENAPI2_HEADER_FIELD_MAX_ITEMS_TYPE = 3231300,
OPENAPI2_HEADER_FIELD_MIN_ITEMS_TYPE = 3231400,
OPENAPI2_HEADER_FIELD_UNIQUE_ITEMS_TYPE = 3231500,
OPENAPI2_HEADER_FIELD_ENUM_TYPE = 3231600,
OPENAPI2_HEADER_FIELD_MULTIPLE_OF_TYPE = 3231700,

OPENAPI3_0 = 5000000,

OPENAPI3_0_OPENAPI_VALUE_PATTERN_3_0_0 = 5000100,
Expand Down
Loading

0 comments on commit 1ae31b7

Please sign in to comment.