A succinct json-schema language that converts JSON objects into JSON Schema definitions. Current stable version is 0.0.2-beta. Release cadence is low, with limited updates. Key differentiators: allows inline type definitions ("string", "number") and marks required fields with a leading asterisk (*). Simplifies manual JSON Schema creation by using a compact notation. Suitable for quickly generating schemas from sample data.
npm install easy-json-schemaNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Converts a compact JSON object into a JSON Schema using easy-json-schema.
Ensure custom type strings or type objects are valid JSON Schema types supported by the library (string, number, integer, boolean, array, object).
Avoid passing null or empty arrays as input; filter them beforehand.
Consider using a more actively maintained library like ajv or jsonschema for full JSON Schema support.
Ensure input is a proper JSON object or array.
Provide at least one item example in the array, e.g., [{"site": "string"}].Use the import syntax: import ejs from 'easy-json-schema'. For browser, bundle with a bundler like webpack or use a CDN.
No dependency data recorded yet.