Merge branch 'wla80-master'
commit
5cdf5caaa4
|
@ -846,9 +846,9 @@ Create Ajv instance.
|
|||
|
||||
Generate validating function and cache the compiled schema for future use.
|
||||
|
||||
Validating function returns boolean and has properties `errors` with the errors from the last validation (`null` if there were no errors) and `schema` with the reference to the original schema.
|
||||
Validating function returns a boolean value. This function has properties `errors` and `schema`. Errors encountered during the last validation are assigned to `errors` property (it is assigned `null` if there was no errors). `schema` property contains the reference to the original schema.
|
||||
|
||||
Unless the option `validateSchema` is false, the schema will be validated against meta-schema and if schema is invalid the error will be thrown. See [options](#options).
|
||||
The schema passed to this method will be validated against meta-schema unless `validateSchema` option is false. If schema is invalid, an error will be thrown. See [options](#options).
|
||||
|
||||
|
||||
##### <a name="api-compileAsync"></a>.compileAsync(Object schema [, Boolean meta] [, Function callback]) -> Promise
|
||||
|
|
Loading…
Reference in New Issue