Support anyOf in response
See original GitHub issueRight now we don’t support anyOf in the response (i think):
"responses": {
"200": {
"description": "The request was succesfull",
"schema": {
"anyOf": [
{ "$ref": "#/definitions/Dog" },
{ "$ref": "#/definitions/Cat" },
{ "$ref": "#/definitions/Animal" }
]
}
}
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (10 by maintainers)
Top Results From Across the Web
oneOf, anyOf, allOf, not - Swagger
Use the anyOf keyword to validate the data against any amount of the given subschemas. That is, the data may be valid against...
Read more >Multiple responses using oneOf attribute do not appear in UI
According to the Specification, schema is listed as supporting anyOf , oneOf , and allOf . 42
Read more >Building an OpenAPI response, including oneOf, and maybe ...
As far as at least three different linting tools are concerned, a mixture of anyOf , oneOf , and allOf can be used...
Read more >anyOf/allOf/oneOf in Responses - ReadMe Product Portal
anyOf /allOf/oneOf in Responses - ReadMe Product Portal | Product Roadmap. We now support using a different IDP for the ReadMe dashboard and...
Read more >Adding Support for Enums in oneOf and anyOf in Java SDKs
Java SDKs now support enum types defined as oneOf/anyOf types. You can define as many distinct enum types as required with this support....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@artem-tim I investigated the issue and started to make some changes. I need to call it a day now, but i will ping you when there is a working branch. Keep you posted.
Fixed a minor issue, will release the 0.7.0 version today.