We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I would like if it was easier to get correct documentation for POST without an id for creating items.
It would be nice if there was a helper named something like without_id available on Model that allowed something like:
without_id
@router.post( "/movies", response_model=Movie, status_code=status.HTTP_201_CREATED, ) async def add_movie(movie: Movie.without_id): ...
So that id doesn't show up in the documentation for this endpoint and validation would raise if someone tried to provide it.
id
The text was updated successfully, but these errors were encountered:
any update? I want this feature too
Sorry, something went wrong.
No branches or pull requests
Feature request
Context
I would like if it was easier to get correct documentation for POST without an id for creating items.
Solution
It would be nice if there was a helper named something like
without_id
available on Model that allowed something like:So that
id
doesn't show up in the documentation for this endpoint and validation would raise if someone tried to provide it.The text was updated successfully, but these errors were encountered: