From eb5ff61a0102ee7ecb6f94eb930531678ff8484c Mon Sep 17 00:00:00 2001 From: Robin Tail Date: Fri, 22 Dec 2023 00:14:43 +0100 Subject: [PATCH] Revert "fix: update 3.* SchemaObject.examples type to match the spec" This reverts commit f1eb201fd5d39b41bb665706d35ce9b5a7775b4d. --- src/model/openapi30.ts | 2 +- src/model/openapi31.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/model/openapi30.ts b/src/model/openapi30.ts index d1c83f1..3d76347 100644 --- a/src/model/openapi30.ts +++ b/src/model/openapi30.ts @@ -276,7 +276,7 @@ export interface SchemaObject extends ISpecificationExtension { xml?: XmlObject; externalDocs?: ExternalDocumentationObject; example?: any; - examples?: ExamplesObject; + examples?: any[]; deprecated?: boolean; type?: SchemaObjectType | SchemaObjectType[]; diff --git a/src/model/openapi31.ts b/src/model/openapi31.ts index e2c3c0f..48b6dbe 100644 --- a/src/model/openapi31.ts +++ b/src/model/openapi31.ts @@ -272,7 +272,7 @@ export interface SchemaObject extends ISpecificationExtension { externalDocs?: ExternalDocumentationObject; /** @deprecated use examples instead */ example?: any; - examples?: ExamplesObject; + examples?: any[]; deprecated?: boolean; type?: SchemaObjectType | SchemaObjectType[];