Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
api.models: define different user schema models
Define and use different user models for API endpoint and fastapi-users router, i.e. different models as request schema for API request model and schema for request to `fastapi-users` router. For create user request, user needs to send `UserCreateRequest` schema as API router request and the router will use `UserCreate` schema to send the request to `fastapi-users` router. This is due to we intend to have a list of user group name strings as API router request and `UserGroup` instance as `fastapi-users` router request as `user.groups` field value. Signed-off-by: Jeny Sadadia <[email protected]>
- Loading branch information