Closed gberche-orange closed 1 year ago
This is amazing, I've wanted to do something like this myself but always seemed too much work. Do you generate it somehow or hand built?
Thanks, this is hand built but with coding assistance from intellij it goes pretty fast.
Reran Travis, if was an intermittent network issue that caused the failure.
This looks very cool. Out of curiosity, when doing templates or advanced matchers does it just fail completely or is it somewhat graceful?
@aelsabbahy
This looks very cool. Out of curiosity, when doing templates or advanced matchers does it just fail completely or is it somewhat graceful?
Advanced matchers are gracefully ignored. I think it would be possible to refine the Json schema to include gomega supported matchers
For templates, unfortunately the goss documents with templates are not valid json/yaml, so the plain json can't do much yet.
A useful workaround would be to find a way to actually render the templates into a valid goss rendered yaml document. This way, the json validation step could be applied after a template pre-rendering step, still providing useful feedback.
I'll submit a new PR with few fixes soon, and possibly would explore those ideas.
Thanks for your quick feedback and merge (I'm just getting back from Christmas breaks)
Submitted https://github.com/goss-org/goss/pull/795 with rendering preprocessing step using the render
command
The json schema when configured in IDEs (see updated README.md for Intellij instructions) providers coding assistance for editing and authoring goss.yaml files
including:
Checklist
make test-all
(UNIX) passes. CI will also test thisDescription of change
Limitations: