Skip to content

Unify the BaseModel classes #2465

@joneff

Description

@joneff

Is your feature request related to a problem? Please describe.
Compare the two base models:

and those couldn't be any more different.

As a start, the former has model_config that sets reasonable defaults, like alias generation, serialization etc; however the latter does not, which makes it that much harder to use.

Describe the solution you'd like
Have either a single BaseModel, or multiple, but with the reasonable defaults (alias generation, serialization etc).

Describe alternatives you've considered
The only alternative is to sub the hell out of everything and add a model config for each class, which is hardly the best solution.

Metadata

Metadata

Assignees

Labels

priority: p3Desirable enhancement or fix. May not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions