docs: compile method
parent
d87d761d5e
commit
0a39f1de29
|
@ -846,10 +846,9 @@ Create Ajv instance.
|
|||
|
||||
Generate validating function and cache the compiled schema for future use.
|
||||
|
||||
Validating function returns a boolean value and has two properties: `errors`, `schema`. Any errors returned from the last validation are set to `errors`
|
||||
while the value of `errors` is set to `null` to indicate no errors. `schema` contains 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.
|
||||
|
||||
The schema will be validated against meta-schema unless `validateSchema` option is set to false. If schema is invalid, an 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