-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shared $ref between schemas #81
Comments
I think the way to achieve this is to implement a kind of schema preprocessor that combines multiple schemas into one. Now schemas have a compilation step. A lot of tooling directly reads the JSON files, and that'll have to be changed. off the top of my head, json-schema-diff lint, type generator(s) and the actual published packages themselves use different methods each to load those files. Probably at least a week's worth of work. |
When defining the
transactions
schema, I noticed there was a lot of copy/paste fromevents
. The reason for this is that the bulk of the schema definition related to thecontexts
object, which is fairly complex and also entirely the same in the two schemas.It would be great if we can define these subschemas in one place and resolve them from multiple other schemas.
The text was updated successfully, but these errors were encountered: