forked from getkin/kin-openapi
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "openapi3: fix an infinite loop that may have been introduced in
getkin#700 (getkin#768)" This reverts commit 47d329d.
- Loading branch information
1 parent
5a6f97e
commit e0d1375
Showing
4 changed files
with
58 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
openapi: "3.0.0" | ||
info: | ||
version: 1.0.0 | ||
title: Swagger Petstore | ||
license: | ||
name: MIT | ||
servers: | ||
- url: http://petstore.swagger.io/v1 | ||
paths: {} | ||
#paths: | ||
# /pets: | ||
# patch: | ||
# requestBody: | ||
# content: | ||
# application/json: | ||
# schema: | ||
# oneOf: | ||
# - $ref: '#/components/schemas/Cat' | ||
# - $ref: '#/components/schemas/Kitten' | ||
# discriminator: | ||
# propertyName: pet_type | ||
# responses: | ||
# '200': | ||
# description: Updated | ||
components: | ||
schemas: | ||
Cat: | ||
anyOf: | ||
- $ref: "#/components/schemas/Kitten" | ||
- type: object | ||
# properties: | ||
# hunts: | ||
# type: boolean | ||
# age: | ||
# type: integer | ||
# offspring: | ||
Kitten: | ||
$ref: "#/components/schemas/Cat" #ko | ||
|
||
# type: string #ok | ||
|
||
# allOf: #ko | ||
# - $ref: '#/components/schemas/Cat' |