{"version":"2.1.223","anchor":"ajv-is-loaded-lazily-for-json-schema-validation","canonical_anchor":"ajv-is-loaded-lazily-for-json-schema-validation","heading":"Ajv is loaded lazily for JSON-schema validation","tier":"notice","area":"Elsewhere","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.223\/e\/ajv-is-loaded-lazily-for-json-schema-validation","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.223","markdown":"### Ajv is loaded lazily for JSON-schema validation\n\nStartup is slightly faster because the schema validation library loads only when first used.\n\n**What**\n\nThe JSON-schema validator no longer pulls in Ajv when it is constructed, moving that load cost off the startup path.\n\n**Details**\n\n- The validator destructures `{ Ajv: t }` from a lazy require inside the function body.\n- Ajv is now loaded on first schema validation instead of at module construction.\n\n**Evidence**\n\n`let { Ajv: t } = dQn(),`\n\n- Area: Elsewhere\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 0\/5"}