mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
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:
+1
-1
@@ -147,7 +147,7 @@ export interface Schema extends BaseSchema {
|
||||
readOnly?: boolean;
|
||||
xml?: XML;
|
||||
externalDocs?: ExternalDocs;
|
||||
example?: {[exampleName: string]: {}};
|
||||
example?: any;
|
||||
required?: string[];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user