flask_accepts
flask_accepts copied to clipboard
Easy, opinionated Flask input/output handling mixing Marshmallow with flask-restx
Without the @responds decorator, my function has no header fields in the request, just a json payload. When I add @responds along with a schema, X-Fields is added to the...
Hi, It would be nice if there was a way to filter out any fields where the return value is `None`. Flask-RESTX provides this functionality in their `marshal_with` decorator, which...
Hello and thanks for this awesome integration! Just having some issues with static / inferred typing, hoping you could shed some light: (1) VSCode / pylance is unaware of the...
Currently, only a single `responds` decorator may be provided, optionally with a `status_code`. Support for multiple schemas corresponding to different status codes would be straightforward to implement by inspecting the...
While I'm aware this probably does not imply a behavioral change in flask_accepts, it is probably the quickest way for me to get to the bottom of this and potentially...
Hi, I wanted to use custom marshmallow field related to mongo data serialisation ```python class ObjectIdField(fields.Field): def _deserialize(self, value, attr, data, **kwargs): try: return bson.ObjectId(value) except Exception: raise ValidationError('invalid ObjectId...
Hi and thanks for this great package! Wondering if there are any recommendations / thoughts on the following situation: (1) I have a schema named PostSchema that has a UUID...
Hello @apryor6 . I am happy using this library, but sometimes I want to do something before validation, for example pass context to Marshmallow Schema, but I still want to...
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...
I have a case where I defined a marshmallow schema that is being used in both @accepts and @responds for different methods. I would like to use the schema object...