@openinherit/schema
v6.6.0
Published
INHERIT open estate data standard — 31 JSON Schemas, 14 common types, 5 asset categories, 21 jurisdiction extensions, and reference data for structured estate planning interchange across 7 legal traditions
Maintainers
Readme
@openinherit/schema
The INHERIT open estate data standard — JSON Schemas for structured estate planning data interchange.
What's inside
- 31 core entity schemas — estate, person, bequest, kinship, trust, executor, property, asset, and more
- 14 common types — address, money, jurisdiction, identifier, provenance, temporal rules
- 5 asset category schemas — financial, vehicle, digital, business, general
- 21 jurisdiction extensions — UK, US, Australia/NZ, Singapore/Malaysia, Islamic, Hindu, Jewish, Japan, PRC China, EU Succession, and more
- Reference data — enum descriptions, role definitions, form mappings
Install
npm install @openinherit/schemaUsage
Import schemas for validation:
import inheritSchema from '@openinherit/schema/v3/schema.json' assert { type: 'json' };
import personSchema from '@openinherit/schema/v3/person.json' assert { type: 'json' };
import kinshipSchema from '@openinherit/schema/v3/kinship.json' assert { type: 'json' };Use with any JSON Schema 2020-12 validator:
import Ajv from 'ajv/dist/2020';
const ajv = new Ajv();
const validate = ajv.compile(personSchema);Schema version
This package uses JSON Schema 2020-12 ($schema: "https://json-schema.org/draft/2020-12/schema").
The v3/ directory contains all current schemas. The schema generation is v3; the package version (6.x.x) tracks incremental improvements within v3.
Jurisdiction extensions
| Extension | Legal tradition | Jurisdictions | |-----------|----------------|---------------| | UK England & Wales | Common law | GB-ENG, GB-WLS | | Scotland | Mixed civil/common | GB-SCT | | US Estate | Common law | US | | Australia & NZ | Common law | AU, NZ | | Singapore & Malaysia | Common/Islamic | SG, MY | | Islamic Succession | Sharia | SG, MY, ID, AE, SA, PK, BD, GB, US, AU, CA | | Hindu Succession | Hindu customary | IN, NP, LK, MY, SG, GB, US, AU, CA | | Jewish Succession | Halakha | IL, GB, US, CA, AU, FR | | Japan | Civil law | JP | | PRC China | Civil law (socialist) | CN | | EU Succession | Mixed civil law | 25 EU member states | | And 10 more... | | |
Links
- Developer docs: dev.openinherit.org
- Website: openinherit.org
- GitHub: openinherit/standard
- SDK: @openinherit/sdk
Licence
Apache-2.0 — see LICENSE.
