Open jonaslagoni opened 1 month ago
This package doesn’t do any detection of what the current “case” is, it just does the conversion following built in rules. Arguably this rule is wrong, and you can override how things are split, but it was design to handle conversion of things like XMLHttpRequest to other cases.
For now it’s not something I plan to fix this since it’s the first time it’s come up, but if I ever do a new major version I’ll consider removing this as the default split behavior.
It sounds like maybe you just want to detect “is camel case” before converting? Those utilities could be added without a breaking change.
@blakeembrey makes total sense, thanks for the quick reply.
It sounds like maybe you just want to detect “is camel case” before converting? Those utilities could be added without a breaking change.
Might be the best course of action, thanks for the suggestion 🤙
Feel free to close this issue as you see fit 🙂
outletGSId
becomesoutletGsId
through camel case function, when in theory I would expect it to do nothing with the value 🤔 Am I missing something here?Here are the test-case I am running:
Related to https://github.com/blakeembrey/change-case/issues/2 Raised in https://github.com/asyncapi/modelina/issues/2080