json-schema-shorthand

JSON →
library 3.1.1 ·javascript
verified Jun 7, 2026

JavaScript library v3.1.1 providing compact shorthand syntax for JSON Schema definitions. Transforms string types, references (local with #, external with $), and shorthand functions into full schema objects. Supports all major JSON Schema constructs: object, array, primitive types, composition (allOf/oneOf/anyOf), not, and nested references. Includes TypeScript type definitions for schema validation. Active development with regular releases; minimal dependencies. Differentiator: reduces schema boilerplate significantly while maintaining full JSON Schema compatibility.