Skip to content
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
@turekaj

Description

@turekaj

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions