In our OpenAPI spec, we have a field, that can be null
or one of string values (as in code, it is enum).
Expected behaviour
Our response is validated, and status
field is checked if it is null or one of the enum string values.
Actual behaviour
When getting response, and there is a value in status
field, we get validation error stating that the value should always be null
.