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
Is your feature request related to a problem? Please describe.
Didn't use this library yet, just looked at code and saw that BaseModel is hardcoded in templates as base class for models:
Describe the solution you'd like
Add ability to choose the name of base class of models (and even create one automatically)
This would be helpful if I wan't to have same config, methods, etc for all subclasses
Describe alternatives you've considered
This can be approached by renaming BaseModel in a result manually, but if it not hard to implement I'd preffered to have this built-in
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Didn't use this library yet, just looked at code and saw that
BaseModel
is hardcoded in templates as base class for models:datamodel-code-generator/datamodel_code_generator/model/template/pydantic/BaseModel.jinja2
Line 4 in f7f0045
Describe the solution you'd like
Add ability to choose the name of base class of models (and even create one automatically)
This would be helpful if I wan't to have same config, methods, etc for all subclasses
Describe alternatives you've considered
This can be approached by renaming
BaseModel
in a result manually, but if it not hard to implement I'd preffered to have this built-inAdditional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: