How about using json schema and pydantic instead of marshmallow? https://pydantic-docs.helpmanual.io/usage/schema/