Skip to content

Commit b2ac284

Browse files
Doc fix
1 parent ef107f2 commit b2ac284

File tree

2 files changed

+21
-7
lines changed

2 files changed

+21
-7
lines changed

tools/spectral/ipa/__tests__/IPA123EnumValuesShouldNotExceed20.test.js

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -404,10 +404,26 @@ testRule('xgen-IPA-123-allowable-enum-values-should-not-exceed-20', [
404404
items: {
405405
type: 'string',
406406
enum: [
407-
'VAL_1', 'VAL_2', 'VAL_3', 'VAL_4', 'VAL_5',
408-
'VAL_6', 'VAL_7', 'VAL_8', 'VAL_9', 'VAL_10',
409-
'VAL_11', 'VAL_12', 'VAL_13', 'VAL_14', 'VAL_15',
410-
'VAL_16', 'VAL_17', 'VAL_18', 'VAL_19', 'VAL_20',
407+
'VAL_1',
408+
'VAL_2',
409+
'VAL_3',
410+
'VAL_4',
411+
'VAL_5',
412+
'VAL_6',
413+
'VAL_7',
414+
'VAL_8',
415+
'VAL_9',
416+
'VAL_10',
417+
'VAL_11',
418+
'VAL_12',
419+
'VAL_13',
420+
'VAL_14',
421+
'VAL_15',
422+
'VAL_16',
423+
'VAL_17',
424+
'VAL_18',
425+
'VAL_19',
426+
'VAL_20',
411427
'VAL_21',
412428
],
413429
},

tools/spectral/ipa/rulesets/IPA-123.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ rules:
2828
2929
##### Implementation details
3030
Rule checks for the following conditions:
31-
- Applies to inline enum values
32-
- Validates that each enum array has 20 or fewer values
33-
- Reusable enum schemas will be ignored
31+
- Validates that each enum set has 20 or fewer values
3432
- Skips validation if the schema has an exception defined for this rule
3533
- This validation threshold can be adjusted by changing the functionOptions.maxEnumValues parameter
3634
message: '{{error}} https://mdb.link/mongodb-atlas-openapi-validation#xgen-IPA-123-allowable-enum-values-should-not-exceed-20'

0 commit comments

Comments
 (0)