From df6cd13a68b1e46e96d3b5847ab237c239042ef4 Mon Sep 17 00:00:00 2001 From: John Conley Date: Tue, 29 May 2018 09:19:55 -0500 Subject: [PATCH] Make schema example property spec compliant According to the official specification (https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md), the example property of the Schema object should not have any type requirements and should therefore be any. --- types/swagger-schema-official/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/swagger-schema-official/index.d.ts b/types/swagger-schema-official/index.d.ts index dc184d3e91..190e1ead7d 100644 --- a/types/swagger-schema-official/index.d.ts +++ b/types/swagger-schema-official/index.d.ts @@ -147,7 +147,7 @@ export interface Schema extends BaseSchema { readOnly?: boolean; xml?: XML; externalDocs?: ExternalDocs; - example?: {[exampleName: string]: {}}; + example?: any; required?: string[]; }