-
Notifications
You must be signed in to change notification settings - Fork 72
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
Consider alternatives to jsonschema for validation #287
Comments
https://cuelang.org/ could be an option if we consider to refactor the spec, thanks @florianl for the suggestion! |
Giving a try to CUE in #391 and https://github.com/jsoriano/cuetest I am finding some problems, summarized in the description of #391. After these experiments I am starting to consider that maybe it is worth to continue with our variation of jsonschema. We have already needed to fork the library we use (https://github.com/elastic/gojsonschema), we might continue adding features in this fork. |
I am going to close this by now. We have invested more in jsonschema since I opened this issue:
|
We are using jsonschema for validation, one of the targets was to try to define a spec that can be easily validated in other languages that have support for jsonschema, but we have needed several customizations that required more Go code, making difficult to use the spec in other languages.
Some options we have to solve the issues found can be the following ones, we probably need a mix of them to address all issues:
jsonschema
library for validation of json/yaml files.Limitations found:
Other things to take into account:
additionalContents
, but if Kibana is strict on that, new packages may not work in old versions of Kibana.The text was updated successfully, but these errors were encountered: