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
The text was updated successfully, but these errors were encountered:
ddelbondio
changed the title
Custom config-key with minus (-) get translated to underscore (_) in the generated code.
Client Generator: Custom config-key with minus (-) get translated to underscore (_) in the generated code.
Aug 25, 2024
Hi! Thanks for reporting it. Can you open a PR to fix it? It should be reasonably straightforward. The key might follow the same rules for name sanitization we use for the OpenAPI ID.
Looking the regex above, the only allowed specId is my_api not my-api. Thinking here, this group only allows alphanumeric + _ because the file is sanitized.
If a custom config-key setting is used, the value of config-key gets its "-" replaced with "_".
Example:
results in
The text was updated successfully, but these errors were encountered: