openapi-generator
openapi-generator copied to clipboard
[REQ] "/" in value
Issue with / in value
@derive Jason.Encoder
defstruct [
:hate,
:"hate/threatening",
Please recommend, what would be recommend way of fixing, so that decode would work nice?
I think --additional-properties=sanitizeModelPropertyNames=true \ would help, but then decode on those responses would error?
Should the transformation happen in or before the code, so it would not error out?
@wing328
https://github.com/OpenAPITools/openapi-generator/blob/3b3f9a770a50240a53a7c0f59c98f4b7f9bad4be/modules/openapi-generator/src/main/resources/elixir/model.mustache#L7
Related template