Skip to content

add enum field support#23

Open
galacticglum wants to merge 5 commits into
MongoEngine:masterfrom
sqrl-planner:feat/enum-support
Open

add enum field support#23
galacticglum wants to merge 5 commits into
MongoEngine:masterfrom
sqrl-planner:feat/enum-support

Conversation

@galacticglum

@galacticglum galacticglum commented Mar 7, 2023

Copy link
Copy Markdown

Marshmallow has added native support for Enums which makes the conversion from me.EnumField to ma.Enum very straightforward. See https://marshmallow.readthedocs.io/en/stable/marshmallow.fields.html#marshmallow.fields.Enum.

Addresses issue #20

@sponsfreixes

Copy link
Copy Markdown
Collaborator

@galacticglum this is looking great, thanks for the PR! Could you please add a new test for it on test_fields.py?

@sponsfreixes

Copy link
Copy Markdown
Collaborator

Hi @galacticglum, I just wanted to check if you are still interested in getting this PR through by adding tests for it. Thanks!

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

Successfully merging this pull request may close these issues.

2 participants