-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #793 from postmanlabs/release/v4.21.0
Release version v4.21.0
- Loading branch information
Showing
8 changed files
with
461 additions
and
82 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
127 changes: 127 additions & 0 deletions
127
test/data/valid_openapi/multiContentTypesMultiExample.json
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,127 @@ | ||
{ | ||
"openapi": "3.0.0", | ||
"info": { | ||
"version": "1.0.0", | ||
"title": "Swagger Petstore", | ||
"license": { | ||
"name": "MIT" | ||
} | ||
}, | ||
"servers": [{ | ||
"url": "http:https://petstore.swagger.io/v1" | ||
}], | ||
"paths": { | ||
"/pets": { | ||
"post": { | ||
"summary": "List all pets", | ||
"operationId": "pets - updated", | ||
"tags": [ | ||
"pets" | ||
], | ||
"parameters": [{ | ||
"name": "limit1", | ||
"in": "query", | ||
"description": "How many items to return at one time (max 100)", | ||
"schema": { | ||
"type": "integer", | ||
"format": "int32" | ||
} | ||
}], | ||
"requestBody": { | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"$ref": "#/components/schemas/Error" | ||
}, | ||
"examples": { | ||
"ok_example": { | ||
"value": { | ||
"message": "ok" | ||
} | ||
}, | ||
"not_ok_example": { | ||
"value": { | ||
"message": "fail" | ||
} | ||
} | ||
} | ||
}, | ||
"application/xml": { | ||
"schema": { | ||
"$ref": "#/components/schemas/Error" | ||
}, | ||
"examples": { | ||
"ok_example": { | ||
"value": { | ||
"message": "ok" | ||
} | ||
}, | ||
"not_ok_example": { | ||
"value": { | ||
"message": "fail" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"default": { | ||
"description": "unexpected error", | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"$ref": "#/components/schemas/Error" | ||
}, | ||
"example": { | ||
"message": "Not Found" | ||
} | ||
}, | ||
"application/xml": { | ||
"schema": { | ||
"$ref": "#/components/schemas/Error" | ||
}, | ||
"example": { | ||
"message": "Not Found" | ||
} | ||
} | ||
} | ||
}, | ||
"200": { | ||
"description": "Ok", | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"$ref": "#/components/schemas/Error" | ||
}, | ||
"example": { | ||
"message": "Found", | ||
"code": 200123 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"components": { | ||
"schemas": { | ||
"Error": { | ||
"required": [ | ||
"code", | ||
"message" | ||
], | ||
"properties": { | ||
"code": { | ||
"type": "integer", | ||
"format": "int32" | ||
}, | ||
"message": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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
Oops, something went wrong.