Skip to content

feat: add SnakeCaseString to codama-nodes - #136

Open
senzenn wants to merge 1 commit into
codama-idl:mainfrom
senzenn:feat/snake-case-string
Open

feat: add SnakeCaseString to codama-nodes#136
senzenn wants to merge 1 commit into
codama-idl:mainfrom
senzenn:feat/snake-case-string

Conversation

@senzenn

@senzenn senzenn commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Mirrors CamelCaseString so #86 can drop its heck dependency, as suggested in review:
#86 (comment)

Word boundaries follow CamelCaseString's rules, so acronym runs are not split ("HTTPServer" becomes "httpserver"). On every other input class the output matches heck::ToSnakeCase, including separators before numeric suffixes ("mint_2" stays "mint_2"), which the seed name deduplication in #86 relies on.

Mirrors CamelCaseString so codama-idl#86 can drop its heck dependency, as suggested
in review:
codama-idl#86 (comment)

Word boundaries follow CamelCaseString's rules, so acronym runs are not
split ("HTTPServer" becomes "httpserver"). On every other input class the
output matches heck::ToSnakeCase, including separators before numeric
suffixes ("mint_2" stays "mint_2"), which the seed name deduplication in
codama-idl#86 relies on.
@senzenn

senzenn commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

@lorisleiva

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant