json_validate(json, schema, verbose = FALSE, greedy = FALSE, error = FALSE)
TRUE
, then an attribute
"errors" will list validation failures as a data.frameTRUE
,
then the function returns NULL
on success (i.e., call
only for the side-effect of an error on failure, like
stopifnot
).Validate a single json against a schema. This is a convenience
wrapper around json_validator(schema)(json)