Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenAPI schema is not generated for create and update users #287

Open
frankie567 opened this issue Oct 11, 2023 · 1 comment
Open

OpenAPI schema is not generated for create and update users #287

frankie567 opened this issue Oct 11, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@frankie567
Copy link
Member

As mentioned by @pcnoic in https://github.com/orgs/fief-dev/discussions/285.

Probably because we dynamically generate the fields schema. At least, we could hard-code the basic schema in the endpoint decorator.

@frankie567 frankie567 added the bug Something isn't working label Oct 11, 2023
@pcnoic
Copy link

pcnoic commented Oct 11, 2023

@frankie567 is it a hard requirement that the user_create and user_update params are dynamically generated schemas? Testing it with user_create: schemas.user.UserCreateAdmin solves the issue.

If the above is not an option I believe the only way to go now is to set the following in the decorator:

request_model=schemas.user.UserCreateAdmin

and for the user_update accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants