NAME
Catmandu::Fix::Condition::valid - Execute fixes if the data passes validation
SYNOPSIS
# reject all items not conforming to a schemaselect valid('', JSONSchema, schema: "my/schema.json")# check the author fieldunless valid(author, JSONSchema, schema: "my/author.schema.json")... # repair or give warningend
SEE ALSO
See Catmandu::Fix::validate to check and get validation errors.