ajv-formats 3.x
Use ajv-formats 3.x with Ajv 8 to add standard and OpenAPI format validation, fast/selective modes, direct format access, and format comparison keywords.
- For
ajv-formats@3.0.1- Verified
- 2026-09-08, 5 examples executed
- Package
@modootoday/pmcp-ajv-formats@3.0.0
What it covers
- Add all formats
- Select formats and choose fast mode
- v3 date and time behavior
- Format comparison keywords
- Access a format directly
- Common mistakes
- Not covered
- Sources
One example from this skill
This is the skill's own text, not a summary of it. It runs: that is what verifying means here.
import assert from "node:assert/strict"
import Ajv from "ajv"
import addFormats from "ajv-formats"
const ajv = new Ajv()
addFormats(ajv)
const validate = ajv.compile({
type: "object",
properties: {
birthday: { type: "string", format: "date" },
email: { type: "string", format: "email" },
ip: { type: "string", format: "ipv4" },
},
required: ["birthday", "email", "ip"],
additionalProperties: false,
})
assert.equal(validate({ birthday: "2024-02-29", email: "a@example.com", ip: "192.0.2.1" }), true)
assert.equal(validate({ birthday: "2024-02-30", email: "a@example.com", ip: "192.0.2.1" }), false)
assert.equal(validate({ birthday: "2024-02-29", email: "not-an-email", ip: "192.0.2.1" }), false)
What it did in the sandbox
Verifying this skill meant installing the package and running code against it with no route out. Nothing was observed. The full ledger lists every package examined, including the ones that never became a skill.
Nothing observed is not a finding of safety. It means one run, under one policy, produced nothing to report.
Getting it
With a subscription:
npx -y @modootoday/pmcp login
npx -y @modootoday/pmcp install @modootoday/pmcp-ajv-formats
It installs as a dev dependency of your project, and the MCP server finds it there like any other skill.