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.
This commit is contained in:
John Conley
2018-05-29 09:19:55 -05:00
committed by GitHub
parent 86fa899b1f
commit df6cd13a68
+1 -1
View File
@@ -147,7 +147,7 @@ export interface Schema extends BaseSchema {
readOnly?: boolean;
xml?: XML;
externalDocs?: ExternalDocs;
example?: {[exampleName: string]: {}};
example?: any;
required?: string[];
}