ajv
ajv copied to clipboard
The fastest JSON schema Validator. Supports JSON Schema draft-04/06/07/2019-09/2020-12 and JSON Type Definition (RFC8927)
Fix typos in section " Error objects" **What issue does this pull request resolve?** **What changes did you make?** **Is there anything that requires more attention while reviewing?**
**What version of Ajv are you using? Does the issue happen if you use the latest version?** ``` "ajv" : "^8.12.0", "ajv-formats" : "^2.1.1", "@types/ajv" : "^1.0.0", "typescript" : "^5.1.6"...
There seems to be some weird behavior with typescript when refs was left to default. By specifying it manually the behavior was fixed. **What issue does this pull request resolve?**...
**What version of Ajv are you using? Does the issue happen if you use the latest version?** 8.11.2 (latest as of this writing) **Ajv options object** ```ts import Ajv, {...
**What version of Ajv are you using? Does the issue happen if you use the latest version?** 8.12.0 **Ajv options object** export const ajv = new Ajv({ strict: true })...
**What version of Ajv are you using? Does the issue happen if you use the latest version?** 8.12.0, yes **Ajv options object** ```javascript {coerceTypes: true, strict: true} ``` **JSON Schema**...
**What version of Ajv are you using? Does the issue happen if you use the latest version?** 8.12.0 **JSON Schema** ```json { "type": "object", "discriminator": { "propertyName": "type" }, "oneOf":...
```js const validate = ajv.compile(jsonSchema) validate(value) validate[0].instancePath ``` There is however a schemaPath and a dataPath The TS shows an `instancePath` and `schemaPath` but no `dataPath` ```js export interface ErrorObject...
**What version of Ajv you are you using?** v8.12 **What problem do you want to solve?** Validate messages with dynamic subschemas. Our systems process many different kinds of event with...
Just a Question : Can we add any valid regex pattern ( https://ajv.js.org/json-schema.html#pattern ) inside the string type property or is there any limitation on it? **What version of Ajv...