Open philsturgeon opened 1 year ago
Turns out I had given: "$..parameters..[?(@property !== 'properties' && @ && (@.items === void 0 || @.properties === void 0 ))",
which was missing a ]
at the very end, but the issue here is more that I don't know which rule is going wrong so its hard to debug.
Describe the bug
Whilst developing my own JS ruleset I am getting an error message that does not contain enough information for me to detect what/where the issue is or how to resolve it.
To Reproduce
https://raw.githubusercontent.com/digitalocean/openapi/main/specification/DigitalOcean-public.v2.yaml
http://github.com/philsturgeon/spectral-documentation
npm run build && spectral lint https://raw.githubusercontent.com/digitalocean/openapi/main/specification/DigitalOcean-public.v2.yaml --ruleset=dist/ruleset.js --verbose
Expected behavior
I would hope Spectral CLI could let me know what I've done wrong so I can fix it.
Something like:
even then thats not actually what my JSONPath is, so its hard to figure out which rule is broken and what I actually need to do about it.