flask_accepts
flask_accepts copied to clipboard
How to add documentation and validation for a field in the header of the request body
Hey, so i want to implement token verification and i require to accept the authentication token as a header key value pair i want to validation and document it in the OpenApi specification using marshmallow and accepts
You can use the api.header decorator documented here
the documentation uses the requestparser for expected header, any way we can use marshmallow and the accepts library
Not currently, but I will mark this as a feature request as it would be useful.
@priyanshu20 AJ also addresses this in #45.
thank you for pointing it out