You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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?
The text was updated successfully, but these errors were encountered:
I'm dealing with the same problem. In my JSON samples, some fields are camelCase, and others are snake_case. It's impossible to have only the types with the original names.
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:
This would generate the following class:
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 onPyDantic
/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?
The text was updated successfully, but these errors were encountered: