-
Notifications
You must be signed in to change notification settings - Fork 61
Description
Description
This is more of a question than anything, but has it been considered if we could move the JSON schemas from this repo to something like eiffel-community/eiffel-json-schemas?
Motivation
Given the prevalence of jsonschema-to-X tools and the convenience of using such when doing eiffel implementations, I'd like to be able to add a repo as a submodule to pull in the schemas which I can then conver to whatever I need during the build. Adding this whole repo as a submodule is less than ideal since I don't need 95% of it in order to generate the code I need.
Exemplification & Benefits
In our case we're looking into implementing 2 to 3 Java based plugins. It makes sense that all of them should use the same versions of the JSON schemas and all of them should be updatable to the same version in a consistent manner.
As things stand, the way to do that is to checkout this repository, use something like the CLI mode of https://github.com/joelittlejohn/jsonschema2pojo to generate the Java classes, package and publish on some artifact repository then add that the resulting artifact as a dependency to all the projects. This gets more complicated if (when) we need to generate something else than POJOs while still trying to make sure all our implementations are using the same versions of the schemas.
In an ideal world, I'd just add the schemas repo as a submodule to all of them, checkout the same version, and have them generate the necessary files during build.
Possible Drawbacks
Protocol updates would require 2 PRs instead of one; one for the documentation side of things in this repo and another for the actual schemas.