-
Notifications
You must be signed in to change notification settings - Fork 239
Open
Description
From what I understand, OAS 3.1 should support the same validations offered by JSON Schema. It should be possible to define a type { type: 'array', minItems: 2, maxItems: 2, prefixItems: [...] } that would be used to define tuples.
https://json-schema.org/draft/2020-12/json-schema-validation.html
I hope I'm not mistaken, but currently it is not supported in this repository:
open-api/packages/openapi-types/index.ts
Lines 148 to 151 in c805d43
| export interface ArraySchemaObject extends BaseSchemaObject { | |
| type: ArraySchemaObjectType; | |
| items: ReferenceObject | SchemaObject; | |
| } |
Metadata
Metadata
Assignees
Labels
No labels