Validate response gives invalid validation

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.


Hi, could you please provide me with the Schema of CompanyStatus?

CompanyStatus:
      type: string
      enum:
      - ACTIVE
      - DORMANT
      - STRUCK_OFF_DEFUNCT
      - PREPARING_FOR_DISSOLUTION
      - DISSOLUTION
      - INCORPORATION

Let me see if I can reproduce this issue.