Closed estebistec closed 10 years ago
Create a simple field type, building upon ListField, that allows values to be either lists or individual items of the embedded field-type.
E.g., ListOrItem(CharFIeld) would validate and serialize either 'a' or ['a', 'b', 'c'].
ListOrItem(CharFIeld)
'a'
['a', 'b', 'c']
Implemented in #11. Closing.
Create a simple field type, building upon ListField, that allows values to be either lists or individual items of the embedded field-type.
E.g.,
ListOrItem(CharFIeld)
would validate and serialize either'a'
or['a', 'b', 'c']
.