Closed dusktreader closed 7 years ago
@dusktreader Sorry I was a little slow getting back on this one. We are a bit concerned about this property type, as there is no way to specify the type of member objects, and this could pose a problem for property deserialization. Is there a reason that you can't use a regular property type and pass the accepted values using the choices
kwarg?
@davebshow I hadn't noticed the 'choices' option before. I think this could work, but the syntax is a little weird. Also, I noticed that the documentation is out of date because the function is expecting a tuple of tuples or a list of lists but the docs says it should be a dict
Added a type that supports a proeprty being an enum. The values that may be assigned to that property are restricted to valid members of the Enum type.
Also added some test cases