Skip to contents

Based on a JSON schema, ajv is used to create a validator object in Javascript that can be used to check an input yaml. This is done in a V8::v8() context, and stored inside the context property of the the object.

See json-schema.org on how to specify a JSON schema.

Usage

validator(schema)

Arguments

schema

character(1) path to a JSON schema.

Value

New validator object

Properties

context

V8::v8() context with a validator object based on the schema