Learn R Programming

ajv (version 1.0.0)

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

Description

The add a schema to an Ajv instance

Usage

ajv.addKeyword(this, name, definition)

Arguments

this
An AJV instance, provided implicitly when called via my_instance$addSchema(...)
name
The name of the keyword to be added.
definition
A string encoding of a javascript object to be used as to define the keyword.

Value

invisible(NULL)

See Also

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

Examples

Run this code
## Not run: ------------------------------------
# my_ajv_instance = Ajv()
# my_ajv_instance$addSchema
## ---------------------------------------------

Run the code above in your browser using DataLab