ajv.keyword: A wrapper for the Ajv.addFormat method

Description Usage Arguments Value See Also Examples

View source: R/ajv_methods.R

Description

Add a string format to an Ajv instance.

Usage

1
ajv.keyword(this, key, object)

Arguments

this

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

key

String; the name with keyword to add.

object

the format to be added. Must be enclosed in a call to JS.

Value

invisible(NULL)

See Also

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

Examples

1
2
3
4
5
## Not run: 
my_ajv_instance = Ajv()
my_ajv_instance$keyword(key,object)

## End(Not run)

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