- node-lodash (>= 4.17.20)
node-json-schema-merge-allof merge schemas combined using allOf into a more
readable composed schema free from allOf. Features:
- Real and safe merging of schemas combined with allOf
- Takes away all allOf found in the whole schema
- Lossless in terms of validation rules, merged schema does not validate
more or less than the original schema
- Results in a more readable root schema
- Removes almost all logical impossibilities
- Throws if no logical intersection is found (your schema would not
validate anything from the start)
- Validates in a way not possible by regular simple meta validators
- Correctly considers additionalProperties, patternProperties and properties
as a part of an whole when merging schemas containing those
- Correctly considers items and additionalItems as a whole when merging
schemas containing those
- Supports merging schemas with items as array and direct schema
- Supports merging dependencies when mixed array and schema
- Supports all JSON schema core/validation keywords (v6, use custom
resolvers to support other keywords)
- Option to override common impossibility like adding properties when using
"additionalProperties: false"
- Pluggable keyword resolvers
It provides also json-schema-compare to compare JSON schemas correctly.
Installed Size: 177.2 kB
Architectures: all