@pikku/schema-ajv
v0.12.7
Published
JSON schema validation for Pikku, backed by Ajv
Readme
@pikku/schema-ajv
JSON schema validation for Pikku, backed by Ajv.
The default choice on Node. On Cloudflare Workers use @pikku/schema-cfworker,
which avoids Ajv's runtime code generation.
Install
npm install @pikku/schema-ajvUsage
import { AjvSchemaService } from '@pikku/schema-ajv'
const schema = new AjvSchemaService(logger)Pikku compiles and caches schemas on first use, so no registration step is needed.
Docs
https://pikku.dev/docs
