Requirements for model (DTO) base class #25
Closed
rafalkrupinski
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The model class binds two domains - Python and OpenAPI, and it should handle them explicitly.
In JSON:
In Python:
__dunder__
names are reserved, shouldn't put a dunder key inself.__dict__
A model base class should:
All model method could be class methods:
Beta Was this translation helpful? Give feedback.
All reactions