From 32a74bc1d76483a40bd095d18ae5f47467a16ad6 Mon Sep 17 00:00:00 2001 From: Emanuel Pilz Date: Fri, 26 Apr 2024 21:56:37 +0200 Subject: [PATCH] openapi-types: accept boolean JSON Schemas (#902) --- packages/openapi-types/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/openapi-types/index.ts b/packages/openapi-types/index.ts index 5bd58b2b..350b615a 100644 --- a/packages/openapi-types/index.ts +++ b/packages/openapi-types/index.ts @@ -143,7 +143,8 @@ export namespace OpenAPIV3_1 { export type SchemaObject = | ArraySchemaObject | NonArraySchemaObject - | MixedSchemaObject; + | MixedSchemaObject + | boolean; export interface ArraySchemaObject extends BaseSchemaObject { type: ArraySchemaObjectType;