fix "Swagger issue for endpoints register & update" (#233)

* fix: Change on the inheritance model, according to the documentation for the request body parameters. #171

* fix: Changes on the documentation examples to fix the inheritance problem when passing the User class (for create or update only passing the pydantic one) #171

* fix: Changes on the documentation examples to fix the inheritance problem when passing the User class (for create or update only passing the pydantic one) #171

* Put back inheritance on update model and factorize create_update_dict methods

Co-authored-by: François Voron <fvoron@gmail.com>
This commit is contained in:
martincolladofab
2020-06-27 17:19:53 +02:00
committed by GitHub
parent 1f3bb524ae
commit efad0e0fef
12 changed files with 25 additions and 23 deletions

View File

@ -10,7 +10,7 @@ class User(models.BaseUser):
pass
class UserCreate(User, models.BaseUserCreate):
class UserCreate(models.BaseUserCreate):
pass