Questions tagged [ajv]

Ajv stands out as a JSON schema validation tool that caters to both node.js and browser platforms. In addition to supporting draft versions 4, 6, and 7, it offers extra features that go beyond the standard JSON Schema capabilities, enhancing its utility in various applications.

Immediately after setting up a fresh Angular 13 project, addressing the npm ERR! regarding the missing peer dependency ajv@^6.9.1 requested by [email protected]

Recently, I initialized a fresh Angular project by running npx @angular/cli@13 new Ubisoft.SupplierPortalNext.Spa and then performed npm install, which resulted in the following warning: npm WARN [email protected] requires a peer of ajv@^6.9.1 but n ...

AJV - setting additionalProperties to false with special cases allowed

I have implemented ajv to validate my mongodb schemas. { type: "object", properties: { target: { type: "string" }, budget: { type: "number" } }, required: ["target", "budget"], additionalProperties: ...