Key names are formatted in the target language, and not the source language
raldebsi opened this issue · comments
This is more of a request than an issue
, but almost in all of my use case scenarios (at least in python) I've noticed that the classes being made are using python naming scheme (snake case) rather than the import JSON's scheme, which makes me unable to use the models generated without lots of modifications.
Example:
{
"userName": "User1"
}
This would generate the following class:
class UserName(Enum):
USER1 = "User1"
class Root:
user_name: UserName
def __init__(...)
This would not allow me to use the above model to reference the request response's JSON object, as user_name
is not the right field. It is also worth noting that most code I've seen that deals with data models also rely on PyDantic
/ TypedDict
, therefore inherting from TypedDict would also be optimal.
Therefore, is it possible to set a flag that would enable TypedDict + Original Naming Convention instead of using whatever is native to that language?