Skip to content

Overriding flask_restx field  #120

@Matthieu-LAURENT39

Description

@Matthieu-LAURENT39

I'm currently using marshmallow's Method field, which is mapped to the Raw flask_restx field in the type map.
However, the method field only returns strings.
Is there a way to override the type map for a specific marshmallow field, by specifying which flask_restx field to use?
Something like my_field = ma.Method(deserialize="get_field", field=fr.String) would be perfect

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions