Changelog
2.0.0
@serializeAll("*": ModelSchema)
is no longer valid. Instead you should pass
@serializeAll("*": object(ModelSchema))
.{"*": object(...)}
and {"x": object(...)}
now behave the same when
deserializing {"x": "str_not_object"}
(result: {x: null}
). Previously the "*"
schema would
have returned {}
.ref
and child
functions. Use reference
and object
instead.pattern
argument as AdditionalPropArgs
instead of having to manually assign it
to a PropSchema: @serializeAll("*": list(primitive(), { pattern: /^_.*/ }))
. Note this only make
sense together with the "*"
property.