ajv.validateSchema: A wrapper for the Ajv.validateSchema method

Description Usage Arguments Value See Also Examples

View source: R/ajv_methods.R

Description

The validate a json schema

Usage

1
ajv.validateSchema(this, schema)

Arguments

this

An AJV instance, provided implicitly when called via my_instance$ajv(...)

schema

The Schema to be validated. schema may be a valid JSON string, an R object (i.e. 'list(...)'), a connection to a JSON file, or the name of a JSON or YAML file. YAML files are parsed via [js-yaml](https://www.npmjs.com/package/js-yaml)'s 'safeLoad()' method.

Value

boolean

See Also

Other AJV.Instance.Methods: ajv.addFormat, ajv.addKeyword, ajv.addSchema, ajv.errorsText, ajv.keyword, ajv.removeSchema, ajv.validate

Examples

1
2
3
4
5
## Not run: 
my_ajv_instance = Ajv()
my_ajv_instance$validateSchema

## End(Not run)

Example output

function (...) 
ajv.validateSchema(x, ...)
<environment: 0x3f722b0>

ajv documentation built on May 2, 2019, 2:11 p.m.