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
{{ message }}
Repository navigation
properties' custom_formatters don't work unless the containing shema is strictly Object #149
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:
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[/+]on Jul 14, 2019
Activity
phrfpeixoto commentedon Jul 7, 2019
As a work around, you may add a type declaration alongside that allOf:
[-]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[/+]phrfpeixoto commentedon Jul 14, 2019
@p1c2u Would you mind reviewing this?