Closed Pizzaface closed 11 months ago
Hey @Pizzaface, this error is coming from prance
package since I do not have any validation for enums. Could you please check if some newer version works with that? If yes, I could upgrade the dependency, but if not, please open the issue in the related repo - Prance
Whoops! Sorry about that - appreciate the quick response. Will open an issue there. Cheers!
I'm closing this issue for now, feel free to raise a new one once new version of dependency should be used
Describe the bug When adding a
nullable
enum
Schema, the operation will fail unlessnull
is directly provided in theenum
list. This is becausenullable
is not processed before the schema is validated and not havingnull
in the values causes an error.The error is similar to:
To Reproduce Steps to reproduce the behavior:
nullable
string
parameter.null
in the enum valuesExpected behavior When adding a
nullable
field - the property should havenull
automatically added to the enum list - with the default beingnull
if not supplied while allowing a set value.System details (please complete the following information):