This repository was archived by the owner on Jun 6, 2024. It is now read-only.
This repository was archived by the owner on Jun 6, 2024. It is now read-only.
deserialization of responses from flask-rest-jsonapi not working #294
Open
Description
I currently use flask-rest-jsonapi (https://flask-rest-jsonapi.readthedocs.io/en/latest/) to implement an API. I have defined my schemas and relationshipsusing marshmallow_jsonapi.flask, and the schemas live in another project.
I attempted to create a client which would import the schemas, and utilize the requests library to make http requests to my backend.
MySchema().loads(response.json()) gives back "unknown fields" for things that are not listed in the "attributes" of the jsonapi response. The json response from flask-rest-jsonapi looks correct, and response.json() turns that json into a dict (which is passed to loads)
Am I do something something wrong here?
Metadata
Metadata
Assignees
Labels
No labels