Skip to content

Commit

Permalink
Revert "fix: update 3.* SchemaObject.examples type to match the spec"
Browse files Browse the repository at this point in the history
This reverts commit f1eb201.
  • Loading branch information
RobinTail committed Dec 21, 2023
1 parent fc77bc6 commit eb5ff61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/model/openapi30.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ export interface SchemaObject extends ISpecificationExtension {
xml?: XmlObject;
externalDocs?: ExternalDocumentationObject;
example?: any;
examples?: ExamplesObject;
examples?: any[];
deprecated?: boolean;

type?: SchemaObjectType | SchemaObjectType[];
Expand Down
2 changes: 1 addition & 1 deletion src/model/openapi31.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
Expand Down

0 comments on commit eb5ff61

Please sign in to comment.