Skip to content
This repository was archived by the owner on Mar 18, 2019. It is now read-only.

One possible strategy for support enum as a parameter #12

Closed
wants to merge 1 commit into from

Conversation

zbyte64
Copy link

@zbyte64 zbyte64 commented Oct 17, 2017

This is one possible way to support enum as a parameter and fix #11

I didn't know whether coreschema wants to even store enum as a property but it does have an Enum schema type. This patches Schema.__new__ to see if enum is passed and will return an Enum instance instead.

@zbyte64
Copy link
Author

zbyte64 commented Oct 19, 2017

Definitely don't do this.

@zbyte64 zbyte64 closed this Oct 19, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Swagger example is broken
1 participant