Skip to content

Add support for prefixItems #864

@edobrb

Description

@edobrb

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:

export interface ArraySchemaObject extends BaseSchemaObject {
type: ArraySchemaObjectType;
items: ReferenceObject | SchemaObject;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions