open-rpc / schema-utils-js

Utils for OpenRPC. https://open-rpc.github.io/schema-utils-js/
Apache License 2.0
20 stars 17 forks source link

All of merging json schema util function #707

Closed zcstarr closed 2 years ago

zcstarr commented 3 years ago

All of in JSON schema Merge

Summary

All of merging is a frequently desired aspect of JSON schema. The current specification doesn't allow for constraint merging. This makes it hard to do things like inheritance. The proposal here is to add a function to schema utils to make it possible, for people to transform their json schemas into an expanded form merging all of properly. This feature would be a non breaking change that would otherwise "fix" broken JSON schema, and would be entirely optional.

Acceptance Criteria

Schema utils has a function that will support all of merging within the context of openrpc

background: https://github.com/mokkabonna/json-schema-merge-allof https://json-schema.org/understanding-json-schema/reference/combining.html?highlight=allof#subschema-independence

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.