This repository was archived by the owner on Dec 25, 2024. It is now read-only.
[BUG] Invalid function names based on strings containing # and digits #70
Labels
bug
Something isn't working
Bug Report Checklist
Description
Invalid function names are generated from
enum
string values resembling"#367B9C"
.openapi-generator version
latest
via docker CLIOpenAPI declaration file content or url
Minimal reproduction: gist, validated with vacuum
Generation Details
docker run --rm -v ${PWD}:/local openapitools/openapi-generator-cli:latest generate --global-property skipFormModel=false -i /local/color-names.json -g python -o /local/openapi-client
Steps to reproduce
After generating, install generated code and run
pytest
.Output:
Original bug from: OpenAPITools/openapi-generator#13942
The text was updated successfully, but these errors were encountered: