Skip to contents

Usage

validate_schema(
  schema,
  version = c("draft202012", "draft201909", "draft07", "draft06", "draft04"),
  ...
)

Arguments

schema

A JSON schema

version

The version of the JSON schema specification to use

...

Additional arguments passed to validate()

Value

TRUE if the schema is valid, FALSE otherwise

See also

Examples

validate_schema(schema = '{"type": "string"}', version = "draft202012")
#> [1] TRUE