diff --git a/src/lib/openapi/spec/constraint-schema.ts b/src/lib/openapi/spec/constraint-schema.ts index 58af9c407d..6cf0d51bec 100644 --- a/src/lib/openapi/spec/constraint-schema.ts +++ b/src/lib/openapi/spec/constraint-schema.ts @@ -39,6 +39,7 @@ export const constraintSchemaBase = { items: { type: 'string', }, + minItems: 1, example: ['my-app', 'my-other-app'], }, value: { diff --git a/src/test/arbitraries.test.ts b/src/test/arbitraries.test.ts index 1d12631a0e..a4c5cd0db8 100644 --- a/src/test/arbitraries.test.ts +++ b/src/test/arbitraries.test.ts @@ -37,7 +37,7 @@ export const strategyConstraint = (): Arbitrary => operator: fc.constantFrom(...ALL_OPERATORS), caseInsensitive: fc.boolean(), inverted: fc.boolean(), - values: fc.array(fc.string()), + values: fc.array(fc.string(), { minLength: 1 }), value: fc.string(), });