{"library":"json-schema-default","type":"library","category":null,"description":"Generate an object based on default values defined in a JSON Schema. This package extracts only the default values from a schema, ignoring 'required' constraints, making it suitable for pre-filling forms or merging with existing data to ensure defaults are present. v1.0.2 targets Node 18+ and ships TypeScript types. It differs from json-schema-empty (which respects 'required' and creates placeholder values) by focusing strictly on explicit defaults. Release cadence: low (single stable release as of 2024). Key alternatives: AJV's assignDefaults, json-schema-empty, json-schema-fill-defaults.","language":"javascript","status":"active","version":"1.0.2","tags":["javascript","JSON","schema","JSON-Schema","Data Generation","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install json-schema-default","imports":["import { jsonDefault } from 'json-schema-default'","import jsonDefault from 'json-schema-default'","import type { JsonSchemaDefault } from 'json-schema-default'"]},{"cmd":"yarn add json-schema-default","imports":[]},{"cmd":"pnpm add json-schema-default","imports":[]}],"homepage":"https://github.com/mdornseif/json-schema-default","github":"https://github.com/mdornseif/json-schema-default","docs":null,"changelog":null,"pypi":null,"npm":"json-schema-default","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}