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
When using the DefaultJSONValidator which propagates all defaults to the payload does not take account of the OneOf branches.
oneOf: - type: object properties: foo: type: string default: "bar" - type: object properties: xyz: type: string
When providing { "xyz": "abc" } No default should be propagated due to the oneOf nature
{ "xyz": "abc", "foo": "bar" }
This is invalid within the contract as it can only be oneOf and not both.
Use the Default JSON Validator with the provided schema.
Output of the commands:
python --version
pip show connexion | grep "^Version\:"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
When using the DefaultJSONValidator which propagates all defaults to the payload does not take account of the OneOf branches.
Expected behaviour
When providing
{
"xyz": "abc"
}
No default should be propagated due to the oneOf nature
Actual behaviour
{
"xyz": "abc",
"foo": "bar"
}
This is invalid within the contract as it can only be oneOf and not both.
Steps to reproduce
Use the Default JSON Validator with the provided schema.
Additional info:
Output of the commands:
python --version
-> 3.10pip show connexion | grep "^Version\:"
-> 3.0.5The text was updated successfully, but these errors were encountered: