issues
search
closeio
/
cleancat
Validation and serialization library for Python designed to be used with JSON REST frameworks
MIT License
52
stars
8
forks
source link
Allow to narrow down choices in an Enum field
#31
Closed
wojcikstefan
closed
6 years ago
wojcikstefan
commented
6 years ago
This PR:
Allows you to only consider a subset of a specific enum's options valid.
Installs
enum34
in tests so that we can test the
Enum
field in Python v2.
Is backward-compatible, unless someone initialized
Enum()
using positional arguments (highly unlikely).
This PR:
enum34
in tests so that we can test theEnum
field in Python v2.Enum()
using positional arguments (highly unlikely).