Closed rmallah closed 4 years ago
Can't replicate the issue, without a failing case. Please open an issue in https://github.com/mojolicious/json-validator/ with a failing test case. You can look at https://github.com/mojolicious/json-validator/blob/master/t/jv-enum.t for examples.
Thanks for responding. Will do the need ful.
looks like it is possible to send across responses that bear some field which is defined as an enum in spec but has a value other than the enumerated ones.
Eg
and somewhere else:
While sending the response it was possible to set party_type to 'VAL3' and the openapi renderer did not complain on the violation of enum.