You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using a schema that has additionalProperties set to some type, and when then returning an object that has an additional property set to undefined, the response validation fails. Instead, it should ignore the undefined values, because they will be filtered out when serializing the response to JSON.
To Reproduce
Steps to reproduce the behavior.
Create an OpenAPI spec that has some response with
additionalProperties:
type: string
Activate response validation
Return an object that has an additional property set to undefined
Actual behavior undefined values make validation of additionalProperties fail
Expected behavior undefined values are ignored for validation additionalProperties in response validation
The text was updated successfully, but these errors were encountered:
Describe the bug
When using a schema that has
additionalProperties
set to some type, and when then returning an object that has an additional property set toundefined
, the response validation fails. Instead, it should ignore theundefined
values, because they will be filtered out when serializing the response to JSON.To Reproduce
Steps to reproduce the behavior.
undefined
Actual behavior
undefined
values make validation of additionalProperties failExpected behavior
undefined
values are ignored for validation additionalProperties in response validationThe text was updated successfully, but these errors were encountered: