flask_accepts icon indicating copy to clipboard operation
flask_accepts copied to clipboard

Overriding flask_restx field

Open Matthieu-LAURENT39 opened this issue 1 year ago • 0 comments

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

Matthieu-LAURENT39 avatar Mar 18 '23 14:03 Matthieu-LAURENT39