We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug Using oneOf in response content schema doesn't take effect, looks like it only choose the first in oneOf
oneOf
To Reproduce
openapi: "3.0.3" info: title: Test API version: "1" servers: - url: https://ipinfo.io paths: /8.8.8.8/json: get: description: IP responses: "200": description: OK content: application/json; charset=utf-8: schema: oneOf: - type: object properties: error: type: string - type: object properties: ip: type: string hostname: type: string anycast: type: boolean city: type: string region: type: string country: type: string loc: type: string org: type: string postal: type: string timezone: type: string readme: type: string
dredd ./example.yml https://ipinfo.io
Expected behavior pass without error
What is in your dredd.yml?
dredd.yml
skip...
What's your dredd --version output?
dredd --version
dredd v14.0.0 (Linux 5.13.19-2-MANJARO; x64)
Note: if you switch the order, it will pass testing
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Using
oneOf
in response content schema doesn't take effect, looks like it only choose the first inoneOf
To Reproduce
dredd ./example.yml https://ipinfo.io
Expected behavior
pass without error
What is in your
dredd.yml
?skip...
What's your
dredd --version
output?Note: if you switch the order, it will pass testing
The text was updated successfully, but these errors were encountered: