A JavaScript library for building JSON Schema objects using a functional DSL. v1.0.0 (stable, no recent updates). Provides functions to define schema properties, types, arrays, enums, definitions, and $refs in a composable way. Supports Draft-06 and Draft-07. Differentiators: programmatic schema construction with nested object syntax, built-in type helpers, and definition management. Lightweight, no runtime dependencies.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Default export does not exist; use namespace import.
Named import for type helpers is also valid.
Exported function is `definition`, not `define`.
`schema` is the main function, not a default export. Always invoke as `schema.schema()` or import `schema` function directly.
Shows basic usage of `schema` and `types.type` to build a JSON Schema object in CommonJS style.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.