mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-20 00:08:02 +01:00
fix: validate min constraint values in openapi (#4179)
This commit is contained in:
parent
e0f5d2c600
commit
23981407ef
@ -39,6 +39,7 @@ export const constraintSchemaBase = {
|
|||||||
items: {
|
items: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
},
|
},
|
||||||
|
minItems: 1,
|
||||||
example: ['my-app', 'my-other-app'],
|
example: ['my-app', 'my-other-app'],
|
||||||
},
|
},
|
||||||
value: {
|
value: {
|
||||||
|
@ -37,7 +37,7 @@ export const strategyConstraint = (): Arbitrary<ConstraintSchema> =>
|
|||||||
operator: fc.constantFrom(...ALL_OPERATORS),
|
operator: fc.constantFrom(...ALL_OPERATORS),
|
||||||
caseInsensitive: fc.boolean(),
|
caseInsensitive: fc.boolean(),
|
||||||
inverted: fc.boolean(),
|
inverted: fc.boolean(),
|
||||||
values: fc.array(fc.string()),
|
values: fc.array(fc.string(), { minLength: 1 }),
|
||||||
value: fc.string(),
|
value: fc.string(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user