The need for validation functions could be avoided if we'd define model classes as models using generic library support. These days the most common alternative for this purpose is pydantic. pydantic enables:
This would result in a rather bigger refactoring. Pls let me know what you think about this proposal @izar . I'd like to avoid the preparation of PRs which would not be accepted.