question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support anyOf in response

See original GitHub issue

Right 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:closed
  • Created 4 years ago
  • Comments:14 (10 by maintainers)

github_iconTop GitHub Comments

4reactions
ferdikoomencommented, Apr 26, 2020

@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.

1reaction
ferdikoomencommented, Nov 28, 2020

Fixed a minor issue, will release the 0.7.0 version today.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found