{"_id":"@scalar/json-schema-validator","_rev":"7-1defc19e34c10c97b1001102480c35cd","name":"@scalar/json-schema-validator","dist-tags":{"latest":"0.1.6"},"versions":{"0.1.0":{"name":"@scalar/json-schema-validator","version":"0.1.0","keywords":["json-schema","scalar","ajv","validator","typescript"],"author":{"url":"https://github.com/scalar","name":"Scalar"},"license":"MIT","_id":"@scalar/json-schema-validator@0.1.0","maintainers":[{"name":"cameronrohani","email":"cam@scalar.com"},{"name":"marclave","email":"marc@scalar.com"},{"name":"scalar_geoff","email":"geoff@scalar.com"},{"name":"hwkr","email":"bn@hwkr.me"},{"name":"hanspagel","email":"mail@hanspagel.com"},{"name":"amritk","email":"amrit+spam@hockey-community.com"},{"name":"scalar-machine","email":"machine@scalar.com"}],"homepage":"https://github.com/scalar/scalar","bugs":{"url":"https://github.com/scalar/scalar/issues/new/choose"},"dist":{"shasum":"8596e8cabd21d32c966c3153a0d58afd8c30069a","tarball":"https://registry.npmjs.org/@scalar/json-schema-validator/-/json-schema-validator-0.1.0.tgz","fileCount":25,"integrity":"sha512-3mOin8TlRqhH9CndcZeOGFicb+/WSPmclko7vnaTIIa8vqrwZ6ZtwLdsZQpU1xzM5NqMgumF35ii3KEPS7kNDA==","signatures":[{"sig":"MEUCIQC7fnnfjI7GEXfTAvzvQV9PpznODCToWauqpseN7N/1WQIgS2Na5y+V5crl+yWAUxKDu7HnZuWGQV5XY/oL9vWCWXU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":45410},"main":"./dist/index.js","type":"module","_from":"file:scalar-json-schema-validator-0.1.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"scripts":{"test":"vitest --run","build":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json","types:check":"tsgo --noEmit"},"_npmUser":{"name":"hanspagel","email":"mail@hanspagel.com"},"_resolved":"/private/var/folders/3w/dmcljw8d0kgdgjbctj1f2vgw0000gn/T/4ff2f3b2e30562f16ad54e54c8d9c6a4/scalar-json-schema-validator-0.1.0.tgz","_integrity":"sha512-3mOin8TlRqhH9CndcZeOGFicb+/WSPmclko7vnaTIIa8vqrwZ6ZtwLdsZQpU1xzM5NqMgumF35ii3KEPS7kNDA==","repository":{"url":"git+https://github.com/scalar/scalar.git","type":"git","directory":"packages/json-schema-validator"},"_npmVersion":"11.19.0","description":"Validate documents against a JSON Schema with Ajv and human-friendly errors","directories":{},"sideEffects":false,"_nodeVersion":"24.20.0","dependencies":{"ajv":"^8.20.0","yaml":"^2.9.0","ajv-formats":"^3.0.1","ajv-draft-04":"^1.0.0","@scalar/types":"0.18.3","@scalar/helpers":"0.11.2"},"_hasShrinkwrap":false,"devDependencies":{"vite":"8.1.5","@types/node":"^24.1.0"},"_npmOperationalInternal":{"tmp":"tmp/json-schema-validator_0.1.0_1787916122947_0.7092606574663245","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@scalar/json-schema-validator","version":"0.1.1","keywords":["json-schema","scalar","ajv","validator","typescript"],"author":{"url":"https://github.com/scalar","name":"Scalar"},"license":"MIT","_id":"@scalar/json-schema-validator@0.1.1","maintainers":[{"name":"cameronrohani","email":"cam@scalar.com"},{"name":"marclave","email":"marc@scalar.com"},{"name":"scalar_geoff","email":"geoff@scalar.com"},{"name":"hwkr","email":"bn@hwkr.me"},{"name":"hanspagel","email":"mail@hanspagel.com"},{"name":"amritk","email":"amrit+spam@hockey-community.com"},{"name":"scalar-machine","email":"machine@scalar.com"}],"homepage":"https://github.com/scalar/scalar","bugs":{"url":"https://github.com/scalar/scalar/issues/new/choose"},"dist":{"shasum":"eba591cad03269f19753122f7c2ca1c0fcf0f154","tarball":"https://registry.npmjs.org/@scalar/json-schema-validator/-/json-schema-validator-0.1.1.tgz","fileCount":25,"integrity":"sha512-8FcCXX/fWaOwTmdbbD+jjDqGeMGvYW5FRLc1zMduCyWLDqGmuMkEts4psLk8on5Ob6Lj2ZLm5WyKPdgBXtzuvg==","signatures":[{"sig":"MEUCIQDFrcQThiiJm+ep8XwukJLAXNdiiXsH6E6jxKTNLpTPTAIgKK5smp8wcv0RaUlCsuTG+Ley3cy/2YWPaGJH2JSShek=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@scalar%2fjson-schema-validator@0.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":45420},"main":"./dist/index.js","type":"module","_from":"file:scalar-json-schema-validator-0.1.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"scripts":{"test":"vitest --run","build":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json","types:check":"tsgo --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:61e98f9e-d1c4-48a1-9f1e-89ef11d165ea"}},"_resolved":"/tmp/412795a954499044a851e0f082a772a2/scalar-json-schema-validator-0.1.1.tgz","_integrity":"sha512-8FcCXX/fWaOwTmdbbD+jjDqGeMGvYW5FRLc1zMduCyWLDqGmuMkEts4psLk8on5Ob6Lj2ZLm5WyKPdgBXtzuvg==","repository":{"url":"git+https://github.com/scalar/scalar.git","type":"git","directory":"packages/json-schema-validator"},"_npmVersion":"11.19.0","description":"Validate documents against a JSON Schema with Ajv and human-friendly errors","directories":{},"sideEffects":false,"_nodeVersion":"24.20.0","dependencies":{"ajv":"^8.20.0","yaml":"^2.9.0","ajv-formats":"^3.0.1","ajv-draft-04":"^1.0.0","@scalar/types":"0.19.0","@scalar/helpers":"0.11.3"},"_hasShrinkwrap":false,"devDependencies":{"vite":"8.1.5","@types/node":"^24.1.0"},"_npmOperationalInternal":{"tmp":"tmp/json-schema-validator_0.1.1_1788777595842_0.5229219130817877","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@scalar/json-schema-validator","version":"0.1.2","keywords":["json-schema","scalar","ajv","validator","typescript"],"author":{"url":"https://github.com/scalar","name":"Scalar"},"license":"MIT","_id":"@scalar/json-schema-validator@0.1.2","maintainers":[{"name":"cameronrohani","email":"cam@scalar.com"},{"name":"marclave","email":"marc@scalar.com"},{"name":"scalar_geoff","email":"geoff@scalar.com"},{"name":"hwkr","email":"bn@hwkr.me"},{"name":"hanspagel","email":"mail@hanspagel.com"},{"name":"amritk","email":"amrit+spam@hockey-community.com"},{"name":"scalar-machine","email":"machine@scalar.com"}],"homepage":"https://github.com/scalar/scalar","bugs":{"url":"https://github.com/scalar/scalar/issues/new/choose"},"dist":{"shasum":"04fa57d958c1a4c766fc2e05ad95a6d35b9ca770","tarball":"https://registry.npmjs.org/@scalar/json-schema-validator/-/json-schema-validator-0.1.2.tgz","fileCount":25,"integrity":"sha512-dUOKgITg2ZzrCtBtJIl8k2gciD+P93EO2jzwitcTn84cMIFH3wt6VI5AoWIo/xRLQf8j3ZXj7M2Z6we/zrYYbA==","signatures":[{"sig":"MEYCIQC4GjJvsGFEeWqSBcLWkK+kgzO8ZRM3+nt1IW7iocbNbQIhAO3St2ZqefA4sTM5RrEjx8FTSeFWzIik5dkw7cSXSwF+","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@scalar%2fjson-schema-validator@0.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":46582},"main":"./dist/index.js","type":"module","_from":"file:scalar-json-schema-validator-0.1.2.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"scripts":{"test":"vitest --run","build":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json","types:check":"tsgo --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:61e98f9e-d1c4-48a1-9f1e-89ef11d165ea"}},"_resolved":"/tmp/2a3bdd6d17699105cdd356bfe286689d/scalar-json-schema-validator-0.1.2.tgz","_integrity":"sha512-dUOKgITg2ZzrCtBtJIl8k2gciD+P93EO2jzwitcTn84cMIFH3wt6VI5AoWIo/xRLQf8j3ZXj7M2Z6we/zrYYbA==","repository":{"url":"git+https://github.com/scalar/scalar.git","type":"git","directory":"packages/json-schema-validator"},"_npmVersion":"11.19.0","description":"Validate documents against a JSON Schema with Ajv and human-friendly errors","directories":{},"sideEffects":false,"_nodeVersion":"24.20.0","dependencies":{"ajv":"^8.20.0","yaml":"^2.9.0","ajv-formats":"^3.0.1","ajv-draft-04":"^1.0.0","@scalar/types":"0.20.0","@scalar/helpers":"0.12.0"},"_hasShrinkwrap":false,"devDependencies":{"vite":"8.1.5","@types/node":"^24.1.0"},"_npmOperationalInternal":{"tmp":"tmp/json-schema-validator_0.1.2_1789555641965_0.1170440364071621","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@scalar/json-schema-validator","version":"0.1.3","keywords":["json-schema","scalar","ajv","validator","typescript"],"author":"Scalar (https://github.com/scalar)","license":"MIT","_id":"@scalar/json-schema-validator@0.1.3","maintainers":[{"name":"cameronrohani","email":"cam@scalar.com"},{"name":"marclave","email":"marc@scalar.com"},{"name":"scalar_geoff","email":"geoff@scalar.com"},{"name":"hwkr","email":"bn@hwkr.me"},{"name":"hanspagel","email":"mail@hanspagel.com"},{"name":"amritk","email":"amrit@scalar.com"},{"name":"scalar-machine","email":"machine@scalar.com"}],"homepage":"https://github.com/scalar/scalar","bugs":"https://github.com/scalar/scalar/issues/new/choose","dist":{"shasum":"90c88a3b5dadc7f43a937c9c2852d215183fa457","tarball":"https://registry.npmjs.org/@scalar/json-schema-validator/-/json-schema-validator-0.1.3.tgz","fileCount":25,"integrity":"sha512-FpnGQYK5euHJEqhhyyOo540SsibkxX8Y8XJYHZ6AOXF3rY8KdM+VPxArQdiSN38EyWg27ubyvZkvl55g+k4qfg==","signatures":[{"sig":"MEUCIQCqY8JGZumXBIeW+SEiMYe5mdNHwma3VVtV8UxldMbNygIgbA5rG7q5OPRBiiehD20pUPSdS4OZK7NpPxRW4+qZtZ4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIFuPJ1EOrl+Hzxu6JiqFWaHZBXKBjEAvc/sYbE97rpVfAiEApXf/xsRwAtKX71wW3qPEaNyj/CY/gN4VtKzfI9d/isE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@scalar%2fjson-schema-validator@0.1.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":46592},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"scripts":{"test":"vitest --run","build":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json","types:check":"tsgo --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:61e98f9e-d1c4-48a1-9f1e-89ef11d165ea"}},"repository":{"url":"git+https://github.com/scalar/scalar.git","type":"git","directory":"packages/json-schema-validator"},"description":"Validate documents against a JSON Schema with Ajv and human-friendly errors","directories":{},"sideEffects":false,"dependencies":{"ajv":"^8.20.0","yaml":"^2.9.0","ajv-formats":"^3.0.1","ajv-draft-04":"^1.0.0","@scalar/types":"0.20.1","@scalar/helpers":"0.12.0"},"_hasShrinkwrap":false,"devDependencies":{"vite":"8.1.5","@types/node":"^24.1.0"},"_npmOperationalInternal":{"tmp":"tmp/json-schema-validator_0.1.3_1790014743378_0.9899924575849055","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@scalar/json-schema-validator","version":"0.1.4","keywords":["json-schema","scalar","ajv","validator","typescript"],"author":"Scalar (https://github.com/scalar)","license":"MIT","_id":"@scalar/json-schema-validator@0.1.4","maintainers":[{"name":"cameronrohani","email":"cam@scalar.com"},{"name":"marclave","email":"marc@scalar.com"},{"name":"scalar_geoff","email":"geoff@scalar.com"},{"name":"hwkr","email":"bn@hwkr.me"},{"name":"hanspagel","email":"mail@hanspagel.com"},{"name":"amritk","email":"amrit@scalar.com"},{"name":"scalar-machine","email":"machine@scalar.com"}],"homepage":"https://github.com/scalar/scalar","bugs":"https://github.com/scalar/scalar/issues/new/choose","dist":{"shasum":"f1f7b6bc385d91ae49fd46d60ab47387a726cd83","tarball":"https://registry.npmjs.org/@scalar/json-schema-validator/-/json-schema-validator-0.1.4.tgz","fileCount":25,"integrity":"sha512-Q67vKZ6/xhmhow9Ou2Hab3VF5zdARHiwdscQ1rcA9MFtoTtSXcflWxWuiWrmrze5ZS2M7n+G+tOOR4uI9cIHrg==","signatures":[{"sig":"MEUCIQCb0GSGB11/eVwbwV4CO+HVrugvJVuDntKfqJye2jkrmAIgVf+HjGwZGk7AehS2V+oR2Z2Oo0NZkAA+nbuj5Sh2WbE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIDAjqYjBu0Ke33h0xwE2jQ1RN+Dz5G1hwu2VgWkwWF5qAiEAtLymxM+NRfq/I+X8enyXXgoPOAsc9EVDUOUspn6c/go=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@scalar%2fjson-schema-validator@0.1.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":46602},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"scripts":{"test":"vitest --run","build":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json","types:check":"tsgo --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:61e98f9e-d1c4-48a1-9f1e-89ef11d165ea"}},"repository":{"url":"git+https://github.com/scalar/scalar.git","type":"git","directory":"packages/json-schema-validator"},"description":"Validate documents against a JSON Schema with Ajv and human-friendly errors","directories":{},"sideEffects":false,"dependencies":{"ajv":"^8.20.0","yaml":"^2.9.0","ajv-formats":"^3.0.1","ajv-draft-04":"^1.0.0","@scalar/types":"0.21.0","@scalar/helpers":"0.13.0"},"_hasShrinkwrap":false,"devDependencies":{"vite":"8.1.5","@types/node":"^24.1.0"},"_npmOperationalInternal":{"tmp":"tmp/json-schema-validator_0.1.4_1790077380107_0.9058690512172949","host":"s3://npm-registry-packages-npm-production"}},"0.1.5":{"name":"@scalar/json-schema-validator","version":"0.1.5","keywords":["json-schema","scalar","ajv","validator","typescript"],"author":"Scalar (https://github.com/scalar)","license":"MIT","_id":"@scalar/json-schema-validator@0.1.5","maintainers":[{"name":"cameronrohani","email":"cam@scalar.com"},{"name":"marclave","email":"marc@scalar.com"},{"name":"scalar_geoff","email":"geoff@scalar.com"},{"name":"hwkr","email":"bn@hwkr.me"},{"name":"hanspagel","email":"mail@hanspagel.com"},{"name":"amritk","email":"amrit@scalar.com"},{"name":"scalar-machine","email":"machine@scalar.com"}],"homepage":"https://github.com/scalar/scalar","bugs":"https://github.com/scalar/scalar/issues/new/choose","dist":{"shasum":"20bb3c6a1a663774a9fa7ceb380e166d6f10f562","tarball":"https://registry.npmjs.org/@scalar/json-schema-validator/-/json-schema-validator-0.1.5.tgz","fileCount":25,"integrity":"sha512-HV6ctL19mu9MP79x6/b4PGVq0aGxaECZT0Uwmunp8SH/6kEqMfVZ7nmBFLwnieQr8qbEEcmQWJtYXAtVfNMFcg==","signatures":[{"sig":"MEYCIQDkK+G8icgyqzRPOB3RgK627ESIdO151gQilMeSbYayxQIhAN+UKIQDE0qateFx8zL2LGLqJ+e6FEDVyK0tkRyyYO2J","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQD0u9Rg0dInastK0FQ/c7kSTT8Ygfqvji9sPgz77clj1gIgJD/AWMNSijcX7/kNdpxp8tZuQAiHCUPw0dKYWR2PnPs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@scalar%2fjson-schema-validator@0.1.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":46612},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"scripts":{"test":"vitest --run","build":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json","types:check":"tsgo --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:61e98f9e-d1c4-48a1-9f1e-89ef11d165ea"}},"repository":{"url":"git+https://github.com/scalar/scalar.git","type":"git","directory":"packages/json-schema-validator"},"description":"Validate documents against a JSON Schema with Ajv and human-friendly errors","directories":{},"sideEffects":false,"dependencies":{"ajv":"^8.20.0","yaml":"^2.9.0","ajv-formats":"^3.0.1","ajv-draft-04":"^1.0.0","@scalar/types":"0.22.0","@scalar/helpers":"0.14.0"},"_hasShrinkwrap":false,"devDependencies":{"vite":"8.1.5","@types/node":"^24.1.0"},"_npmOperationalInternal":{"tmp":"tmp/json-schema-validator_0.1.5_1790249775663_0.578078513562994","host":"s3://npm-registry-packages-npm-production"}},"0.1.6":{"_id":"@scalar/json-schema-validator@0.1.6","bugs":"https://github.com/scalar/scalar/issues/new/choose","dist":{"shasum":"f3ef2c8a0f31b95eb0057d46ca1b69dbe5c9fca9","tarball":"https://registry.npmjs.org/@scalar/json-schema-validator/-/json-schema-validator-0.1.6.tgz","fileCount":25,"integrity":"sha512-Jus0D1kyeJq5n0zeZO4HctayQ0TvVQtcIjNpAeyRWncdlje6Qy2usx46E6jg802M9UOB1Fx+89ci3inPID+trg==","signatures":[{"sig":"MEQCIAC4+OvHVBtaHH1i0jAExQIBuACBcIPhWo/3R2bTFmsxAiA81hWKIQkWsJ9IaQ12ZLxOTHOqkIC6yzlLq/XlfDTd9g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQD1DPICncaJQdKsWmbVzkCrDd5YOTQauk5HhYiIkaNAcQIgcJ9gjJhG6XnfYDJiuH/EUv8NUgWjg+sfihRr8jazfHw="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@scalar%2fjson-schema-validator@0.1.6","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":46622},"main":"./dist/index.js","name":"@scalar/json-schema-validator","type":"module","types":"./dist/index.d.ts","author":"Scalar (https://github.com/scalar)","module":"./dist/index.js","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"license":"MIT","scripts":{"test":"vitest --run","build":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json","types:check":"tsgo --noEmit"},"version":"0.1.6","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:61e98f9e-d1c4-48a1-9f1e-89ef11d165ea"}},"homepage":"https://github.com/scalar/scalar","keywords":["json-schema","scalar","ajv","validator","typescript"],"repository":{"url":"git+https://github.com/scalar/scalar.git","type":"git","directory":"packages/json-schema-validator"},"description":"Validate documents against a JSON Schema with Ajv and human-friendly errors","directories":{},"maintainers":[{"name":"cameronrohani","email":"cam@scalar.com"},{"name":"marclave","email":"marc@scalar.com"},{"name":"scalar_geoff","email":"geoff@scalar.com"},{"name":"hwkr","email":"bn@hwkr.me"},{"name":"hanspagel","email":"mail@hanspagel.com"},{"name":"amritk","email":"amrit@scalar.com"},{"name":"scalar-machine","email":"machine@scalar.com"}],"sideEffects":false,"dependencies":{"ajv":"^8.20.0","yaml":"^2.9.0","ajv-formats":"^3.0.1","ajv-draft-04":"^1.0.0","@scalar/types":"0.22.1","@scalar/helpers":"0.15.0"},"_hasShrinkwrap":false,"devDependencies":{"vite":"8.1.5","@types/node":"^24.1.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/json-schema-validator_0.1.6_1790332557694_0.45404588316512906"}}},"time":{"created":"2026-08-28T11:22:02.745Z","modified":"2026-09-25T10:35:58.145Z","0.1.0":"2026-08-28T11:22:03.085Z","0.1.1":"2026-09-07T10:39:55.967Z","0.1.2":"2026-09-16T10:47:22.106Z","0.1.3":"2026-09-21T18:19:03.459Z","0.1.4":"2026-09-22T11:43:00.204Z","0.1.5":"2026-09-24T11:36:15.748Z","0.1.6":"2026-09-25T10:35:57.777Z"},"bugs":"https://github.com/scalar/scalar/issues/new/choose","author":"Scalar (https://github.com/scalar)","license":"MIT","homepage":"https://github.com/scalar/scalar","keywords":["json-schema","scalar","ajv","validator","typescript"],"repository":{"url":"git+https://github.com/scalar/scalar.git","type":"git","directory":"packages/json-schema-validator"},"description":"Validate documents against a JSON Schema with Ajv and human-friendly errors","maintainers":[{"name":"cameronrohani","email":"cam@scalar.com"},{"name":"marclave","email":"marc@scalar.com"},{"name":"scalar_geoff","email":"geoff@scalar.com"},{"name":"hwkr","email":"bn@hwkr.me"},{"name":"hanspagel","email":"mail@hanspagel.com"},{"name":"amritk","email":"amrit@scalar.com"},{"name":"scalar-machine","email":"machine@scalar.com"}],"readme":"# Scalar JSON Schema Validator\n\n[![Version](https://img.shields.io/npm/v/%40scalar/json-schema-validator)](https://www.npmjs.com/package/@scalar/json-schema-validator)\n[![Downloads](https://img.shields.io/npm/dm/%40scalar/json-schema-validator)](https://www.npmjs.com/package/@scalar/json-schema-validator)\n[![License](https://img.shields.io/npm/l/%40scalar%2Fjson-schema-validator)](https://www.npmjs.com/package/@scalar/json-schema-validator)\n[![Discord](https://img.shields.io/discord/1135330207960678410?style=flat&color=5865F2)](https://discord.gg/scalar)\n\nValidate documents against a JSON Schema with [Ajv](https://ajv.js.org/) and get short, human-friendly error messages.\n\nThis is the shared validation engine behind [`@scalar/openapi-validator`](https://www.npmjs.com/package/@scalar/openapi-validator). It knows nothing about OpenAPI or AsyncAPI, so you can use it with any JSON Schema.\n\n---\n\nScalar is an open-source API platform for teams who want beautiful developer interfaces without vendor lock-in.\n\n- **[API References](https://scalar.com/products/api-references/getting-started)** — Interactive API documentation from OpenAPI and AsyncAPI specs.\n- **[Developer Docs](https://scalar.com/products/docs/getting-started)** — Write in Markdown/MDX, generate API references, sync with two-way Git.\n- **[SDK Generator](https://scalar.com/products/sdk-generator/getting-started)** — Type-safe SDKs and CLIs in TypeScript, Python, Go, PHP, Java, and Ruby.\n- **[API Client](https://scalar.com/products/api-client/getting-started)** — Open-source, offline-first Postman alternative built on OpenAPI.\n\n20M+ monthly npm installs · 15,500+ GitHub stars · MIT licensed · [scalar.com](https://scalar.com)\n\n---\n\n## Installation\n\n```bash\nnpm add @scalar/json-schema-validator\n```\n\n## Usage\n\nPass a document (an object, or a JSON/YAML string) and a JSON Schema:\n\n```ts\nimport { validate } from '@scalar/json-schema-validator'\n\nconst schema = {\n  $schema: 'https://json-schema.org/draft/2020-12/schema',\n  type: 'object',\n  required: ['name'],\n  properties: { name: { type: 'string' } },\n}\n\nconst result = validate({ name: 'Hello' }, schema)\n\nconsole.log(result.valid)\n\nif (!result.valid) {\n  console.log(result.errors)\n}\n```\n\nThe dialect is picked automatically from the schema's `$schema` (JSON Schema draft-04, draft-07, and 2020-12 are supported).\n\n### Reuse a schema\n\nWhen validating many documents against the same schema, compile it once:\n\n```ts\nimport { createValidator } from '@scalar/json-schema-validator'\n\nconst validateUser = createValidator(schema)\n\nvalidateUser({ name: 'Ada' })\nvalidateUser({ name: 'Grace' })\n```\n\n### Extra formats\n\nRegister custom Ajv formats via `formats`:\n\n```ts\nvalidate(document, schema, {\n  formats: {\n    'media-range': true,\n  },\n})\n```\n\nFormats are applied when a schema is compiled, and `validate` caches the compiled\nschema by identity. So `formats` only takes effect the first time it sees a given\nschema object — later calls reuse the validator built from that first set. When\ndifferent documents need different formats for the same schema, build a validator\nper format set with `createValidator` instead.\n\n### Throw on error\n\n```ts\ntry {\n  validate(document, schema, { throwOnError: true })\n} catch (error) {\n  // Handle the first validation error\n}\n```\n\n## Community\n\nWe are API nerds. You too? Let's chat on Discord: <https://discord.gg/scalar>\n\n## License\n\nThe source code in this repository is licensed under [MIT](https://github.com/scalar/scalar/blob/main/LICENSE).\n","readmeFilename":""}