Only Union type used in nirum-python is optional type . that is whydeserialize_meta could work well, even though we use is_union_type to find optional type.
But comment from other pull request suggest adding is_optional_type to ensure None is in it.
After we release nirum 0.6.2, replace nirum._compat.is_optional_type into nirum_wsgi.is_optional_type.
Only Union type used in nirum-python is optional type . that is why
deserialize_meta
could work well, even though we useis_union_type
to find optional type.But comment from other pull request suggest adding
is_optional_type
to ensureNone
is in it.After we release nirum 0.6.2, replace
nirum._compat.is_optional_type
intonirum_wsgi.is_optional_type
.