You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Found this issue while investigating the code for #147
I noticed that custom_formatters are not being user for unmarshalling and validating properties, unless their containing Schema is strictly defined.
That is, if the Schema is of type SchemaType.ANY, custom_validators will not work. That's because the _unmarshal_any object fails to propagate the attributes to get_cast_mapping:
phrfpeixoto
changed the title
properties' custom_formatters do work unless the containing shema is strictly Object
properties' custom_formatters don't work unless the containing shema is strictly Object
Jul 14, 2019
Found this issue while investigating the code for #147
I noticed that
custom_formatters
are not being user for unmarshalling and validating properties, unless their containing Schema is strictly defined.That is, if the
Schema
is of typeSchemaType.ANY
,custom_validators
will not work. That's because the_unmarshal_any
object fails to propagate the attributes toget_cast_mapping
:This is specifically sensitive for defining
MediaType
objects:The shema type for that MediaType will be Any (See #147), so that 'url' format will not unmarshal, even though you may define a custom formatter.
The text was updated successfully, but these errors were encountered: