json-schema-merge-allof icon indicating copy to clipboard operation
json-schema-merge-allof copied to clipboard

Simplify your schema by combining allOf

Results 18 json-schema-merge-allof issues
Sort by recently updated
recently updated
newest added

I’ve created a version of the library that uses copy-on-write semantics to avoid copying data unnecessarily or mutating input. It’s actually a pretty conservative change, but the diff is…unfortunately kind...

`allOf` schemas using multiple conditional schemas using `if`, `then`, and `else` cannot be merged. E.g. ```yaml allOf: - if: { properties: { foo: { const: true } } } then:...

Hiya, I'm not sure if this should be in json-schema-merge-allof or just left up to me to write a custom resolver. When merging JSONSchemas, I think we can assume that...

npm install without specifying a version doesn't pull latest.

I think that the best way to handle fields `title`, `description` and `examples` is to preserve what is declared in the schema itself and ignore everything coming from `allOf` items....

`format` should be merged if possible. For example, `uri` is a subset of `uri-reference`. So, both are merged to `uri-reference`.

Thanks for the lib it is really usefull. I didn't managed to make it work in angular in a typescript context. I think porting this lib to make it work...