Add new decorator to document an endpoints requestBody without necessarily validating it, like @app.input does #493
IodizedSalt
started this conversation in
General
Replies: 1 comment 1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Perhaps this exists already, but from my reading of documentation, it doesn't seem so.
I simply wish to keep the current functionality of @app.input where I can define a schema to be displayed in the docs for the required requestBody. However, my API is using custom responses/error handling, and I do not wish to use @app.input built in validation/error handling.
Is there some way to solely use the documentation component of this decorator, without the built in validation ?
Edit:
Hmm, I took another glance at the documentation and completely missed the error handling section's part about overriding ValidationError
I reckon I can just update the ValidationError body directly here to fit my needs, but I still would have liked an extra decorator for simply documenting the requestBody without validation, but perhaps it's bloat. :)
Beta Was this translation helpful? Give feedback.
All reactions