flask_accepts icon indicating copy to clipboard operation
flask_accepts copied to clipboard

Easy, opinionated Flask input/output handling mixing Marshmallow with flask-restx

Results 27 flask_accepts issues
Sort by recently updated
recently updated
newest added

Proposal for https://github.com/apryor6/flask_accepts/issues/116.

I am trying to add a string field to my Schema which uses the validate.OneOf() from marshmallow. I see the correct error response if I pass a bad option to...

enhancement

> The use of missing/default field parameters is deprecated and will be removed in marshmallow 4. load_default/dump_default should be used instead. Source: https://github.com/marshmallow-code/marshmallow/blob/dev/CHANGELOG.rst#3130-2021-07-21 The following code as well as the...

Simple flask app to reproduce: ```python from flask import Flask from flask import request import dataclasses import flask_accepts import marshmallow @dataclasses.dataclass class Person: def __init__(self, name): self.name = name class...

To change the serialized response of the decorator, please add a key "status" in your obj to be serialized `{ ... "status": int }` this field going to override the...

In order to avoid circular import in a flask/marshmallow project, it's possible to reference the Nested field by using its name (as described here https://marshmallow.readthedocs.io/en/latest/nesting.html#two-way-nesting) Unfortunately, flask_accepts doesn't support it...

Two bugs noticed (may not be real bugs). When no body is present (i.e. `request.get_json()` returns `None`) the schema is presented `None` to load from, whereas an empty JSON body...

Swagger fails to load when a marshmallow schema loaded with `@responds` contains fields without the `default=` parameter. If I use `fields.String(default=None)` in the example below, Swagger loads normally. This started...

Hi, thanks for taking the time to make this! I found a corner case where the generated swagger docs / model do not match the Marshmallow schema provided. For nested...

One of the endpoints Im writing is based on file upload. What is the best way to use the `accepts` decorator for this?