Enum strings ON
OFF
being translated to true
false
in generate code
#1317
Labels
bug
Something isn't working
What version of ogen are you using?
Can this issue be reproduced with the latest version?
Yes
What did you do?
I have an OpenAPI schema as follows:
My ogen config is as follows:
When I run
ogen
to generate the code the followingoas_schemas_gen.go
gets generated:What did you expect to see?
What did you see instead?
Note that the resulting code will not compile.
I suspect this has to do with YAML interpretation of
ON
andOFF
totrue
andfalse
. However the OpenAPI spec says:The text was updated successfully, but these errors were encountered: