Open wedi opened 2 years ago
+1
null values are valid and needed especially for the enums. Is there a plan to fix this?
I have hit this multiple times now. Please bump up the priority on this.
Anyone bumping into this, please check your custom rules. You most probably have a null reference there.
Describe the bug
Spectral fails with
Cannot read properties of null (reading 'in')
and exit code2
when you usenull
where spectral doesn't expect it.To Reproduce
Given this
and more similar cases.
Run this CLI command '....'
yarn spectral lint test.yaml
See error
The error is always exactly the same:
Expected behavior A clear and concise description of what's wrong or at least a hint where this happened. If you have a big file with
$ref
s to other files it's trial and error (or diffing).Environment (remove any that are not applicable):