Currently the split_words logic does not allow numerical suffixes in words
https://github.com/triaxtec/openapi-python-client/blob/v.0.9.1/openapi_python_client/utils.py#L14-L17
Applying sneak_case for a tag like "v1" it gets transformed into "v_1" .
It may be very subjective but in my opinion is ugly, and I would prefer that resulting output after applying sneak_case would be "v1".
As changing split_words is a breaking change (and may be arguable whether the number is part of the word or not) maybe one solution could be to make the behavior of split_words configurable via config file.
Currently the
split_wordslogic does not allow numerical suffixes in wordshttps://github.com/triaxtec/openapi-python-client/blob/v.0.9.1/openapi_python_client/utils.py#L14-L17
Applying
sneak_casefor a tag like "v1" it gets transformed into "v_1" .It may be very subjective but in my opinion is ugly, and I would prefer that resulting output after applying
sneak_casewould be "v1".As changing
split_wordsis a breaking change (and may be arguable whether the number is part of the word or not) maybe one solution could be to make the behavior ofsplit_wordsconfigurable via config file.