You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yarn spectral lint test.yaml
yarn run v1.22.17
$ /Users/weise/code/spectral_example/node_modules/.bin/spectral lint test.yaml
Cannot read properties of null (reading 'in')
error Command failed with exit code 2.
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 $refs to other files it's trial and error (or diffing).
Environment (remove any that are not applicable):
yarn spectral --version
yarn run v1.22.17
$ /Users/weise/code/spectral_example/node_modules/.bin/spectral --version
6.1.0
✨ Done in 0.87s.
The text was updated successfully, but these errors were encountered:
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
null
as default value for nullable strings #1980)and more similar cases.
yarn spectral lint test.yaml
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):
yarn spectral --version yarn run v1.22.17 $ /Users/weise/code/spectral_example/node_modules/.bin/spectral --version 6.1.0 ✨ Done in 0.87s.
The text was updated successfully, but these errors were encountered: