Add a way to override a type within a model for all fields #34
Labels
enhancement
New feature or request
internals
Technical and subtle issues users are (usually) not aware of
prio:B
UX
Features and tools improving overall experience and practicality of Metador framework
When subclassing a schema, e.g. to say "use MyPerson instead of Person in all fields"
Otherwise each field must be overridden explicitly, which is error prone or confusing.
Again the question arises: Decorator? Meta-class? this should not be too annoying to use.
Maybe the decorator should look like
and should
In all other cases (not specializing to a subtype) it should remain a manual type hint, otherwise it would be to easy to wreak havoc.
The text was updated successfully, but these errors were encountered: