Skip to content

Commit

Permalink
express-openapi: add TupleSchemaObject (closes kogosoftwarellc#864)
Browse files Browse the repository at this point in the history
  • Loading branch information
edobrb committed May 2, 2023
1 parent c805d43 commit bebf294
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/openapi-types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ export namespace OpenAPIV3_1 {
*/
export type SchemaObject =
| ArraySchemaObject
| TupleSchemaObject
| NonArraySchemaObject
| MixedSchemaObject;

Expand All @@ -150,6 +151,11 @@ export namespace OpenAPIV3_1 {
items: ReferenceObject | SchemaObject;
}

export interface TupleSchemaObject extends BaseSchemaObject {
type: ArraySchemaObjectType;
prefixItems: (ReferenceObject | SchemaObject)[];
}

export interface NonArraySchemaObject extends BaseSchemaObject {
type?: NonArraySchemaObjectType;
}
Expand Down

0 comments on commit bebf294

Please sign in to comment.