-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Create a JSON-schema for the Devfile #11904
Comments
@sleshchenko I have moved devfile to https://github.com/redhat-developer/devfile |
Json validation library research:
Libraries 2 and 3 already have theirs CQ-s approved (or maybe just piggyback ir required) Unfortunately, none of them supports validating yaml directly. So for phase 1 we can convert incoming yaml to JSON before validation. So, for me lib no.2 looks most reasonable for this moment, |
The best way to generate POJO from schema is seems to be https://github.com/joelittlejohn/jsonschema2pojo library. We shall review it and start a CQ process if we found it acceptable for us. |
Will be closed together with merge of #11998 |
Description
Create a JSON-schema for the Devfile.
It's a well-known standard for defining data formats. It will help with the discussion and allows to generate doc and API source code too.
The text was updated successfully, but these errors were encountered: