You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the solution you'd like
A command line flag that causes enum constraints to be ignored; the generated code would simply use the defined type (eg. "string").
Describe alternatives you've considered
I'm currently modifying the schema definition to replace "enum" with "x-extensible-enum" as described at https://opensource.zalando.com/restful-api-guidelines/#112
The code generator appears to ignore "x-extensible-enum" entirely, which produces the desired result, but this doesn't seem like a sustainable strategy moving forward.
Additional context
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I'm trying to create a client for an API whose json schema includes enums that may be expanded without warning. This appears to violate best practices (see https://opensource.zalando.com/restful-api-guidelines/#112) but I don't really have sway over the schema authors, and I think a robust client should be prepared for this (see https://opensource.zalando.com/restful-api-guidelines/#108).
Describe the solution you'd like
A command line flag that causes enum constraints to be ignored; the generated code would simply use the defined type (eg. "string").
Describe alternatives you've considered
I'm currently modifying the schema definition to replace "enum" with "x-extensible-enum" as described at https://opensource.zalando.com/restful-api-guidelines/#112
The code generator appears to ignore "x-extensible-enum" entirely, which produces the desired result, but this doesn't seem like a sustainable strategy moving forward.
Additional context
The text was updated successfully, but these errors were encountered: