Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overriding flask_restx field #120

Open
Matthieu-LAURENT39 opened this issue Mar 18, 2023 · 0 comments
Open

Overriding flask_restx field #120

Matthieu-LAURENT39 opened this issue Mar 18, 2023 · 0 comments

Comments

@Matthieu-LAURENT39
Copy link

Matthieu-LAURENT39 commented Mar 18, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant