8000 Tags · colinhacks/dotschema · GitHub
[go: up one dir, main page]

Skip to content
8000

Tags

Tags

v0.0.3

Toggle v0.0.3's commit message

Verified

This commit was signed with the committer’s verified signature.
colinhacks Colin McDonnell
dotschema 0.0.3, the maintainer's answer of 2026-10-30 to "Should dot…

…schema 0.0.3 be released before the video is posted, so npm has `.output` and `.input`?": "Release 0.0.3 now". Since 0.0.2: a schema's types are `.output` and `.input` in place of `.Type`; `.validate()` fills defaults in, applies a string `transform`, drops a property that holds `undefined` and a key no schema of an open object lists, into a copy; a schema can set its own messages with `errorMessage`; a plain object has `.partial()`, `.required()` and `.keyof()`; an `$id` inside a file is read, annotations reach the types and `unevaluatedProperties` closes an object; the JSON Schema Test Suite's wrong verdicts are fixed or refused at build time, and `{ "not": {} }` is `never`; Zod's formats are named in kebab case; `.schema` is typed with mutable arrays; and JSON5 is dropped, so json5 is no dependency. Verified: nub run bump 0.0.3 wrote package.json; main's checks passed in CI at 4b2d1b1, and release.yml runs them again before it stages.

v0.0.2

Toggle v0.0.2's commit message

Verified

This commit was signed with the committer’s verified signature.
colinhacks Colin McDonnell
dotschema 0.0.2, the maintainer's choice of 2026-10-27 ("Release 0.0.…

…2 now") over holding it for codecs: since 0.0.1, every JSON Schema Test Suite format test passes (896 of 896 in 2020-12, 815 of 815 in draft-07, from 751 and 673), Zod's 35 string formats are checked as Zod checks them, idn-hostname, idn-email, iri and iri-reference are checked at all, each format checked by a function is a file of dotschema's own that a module carries only when it uses it, and ajv-formats is no longer a dependency. Verified: nub run bump 0.0.2 wrote package.json; main's checks passed in CI at 13b5aba, and release.yml runs them again before it stages.

v0.0.1

Toggle v0.0.1's commit message

Verified

This commit was signed with the committer’s verified signature.
colinhacks Colin McDonnell
The test "a schema outside any project that installs ajv still valida…

…tes" checks the declaration of its root again: its `assert.match` sat inside the `//` comment above it, after a literal `\n` that an edit in 9c59925 wrote in place of a line break, so it never ran (found by the agent measuring the dependency ranges). Verified: the assertion, on its own line, passes (`interface A`, the file's name, not the schema's title); nub run typecheck; nub run test.
0