Added the strict_enum flag to the parse function, which is forwarded to the underlying builders. The default value is True to keep the current default behaviour.
The Loose<EnumType> classes mimick the Enum API through the value attribute, so downstream users don't need to check the type of Schema.format or Content.type.
Fixes #40
Added the
strict_enum
flag to the parse function, which is forwarded to the underlying builders. The default value isTrue
to keep the current default behaviour.The
Loose<EnumType>
classes mimick theEnum
API through thevalue
attribute, so downstream users don't need to check the type ofSchema.format
orContent.type
.