docs: allowedValue param in const keyword error
parent
aabd9959de
commit
a6f1345377
|
@ -899,7 +899,7 @@ This allows you to do nice things like the following.
|
|||
|
||||
```javascript
|
||||
var validate = new Ajv().addSchema(schema).addFormat(name, regex).getSchema(uri);
|
||||
```
|
||||
```
|
||||
|
||||
##### .addMetaSchema(Array<Object>|Object schema [, String key]) -> Ajv
|
||||
|
||||
|
@ -1199,6 +1199,7 @@ Properties of `params` object in errors depend on the keyword that failed valida
|
|||
- `patternRequired` (in ajv-keywords) - property `missingPattern` (required pattern that did not match any property).
|
||||
- `type` - property `type` (required type(s), a string, can be a comma-separated list)
|
||||
- `uniqueItems` - properties `i` and `j` (indices of duplicate items).
|
||||
- `const` - property `allowedValue` pointing to the value (the schema of the keyword).
|
||||
- `enum` - property `allowedValues` pointing to the array of values (the schema of the keyword).
|
||||
- `$ref` - property `ref` with the referenced schema URI.
|
||||
- `oneOf` - property `passingSchemas` (array of indices of passing schemas, null if no schema passes).
|
||||
|
|
Loading…
Reference in New Issue