Skip to content

split_words: allow numeric suffix in words #432

Closed
@tsotnikov

Description

@tsotnikov

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions