Closed tomo-kn closed 3 weeks ago
We encountered the same error. By adding the following configuration to .spectral.yaml
to disable the array-items
rule, the error was muted.
rules:
array-items: off
It appears that array-items
was added in @stoplight/spectral-rulesets 1.19.0 . There may be a bug in this rule 🤔
@tomo-kn, thanks for reporting this issue rapidly! It should be fixed by #2638. Sorry for the inconvenience that we may caused!
:tada: This issue has been resolved in version 1.19.1 :tada:
The release is available on @stoplight/spectral-rulesets-1.19.1
Your semantic-release bot :package::rocket:
Describe the bug After upgrading to
@stoplight/spectral-rulesets
version 1.19.0, we encountered a validation error that was not present in version 1.18.1.The error message indicates a problem with
spectral
, specifically aTypeError: Cannot read properties of null (reading 'type')
.To Reproduce
@stoplight/spectral-rulesets
version 1.19.0.ibm-openapi-validator
orspectral
.Expected behavior The OpenAPI validation should pass without any errors, as it did with
@stoplight/spectral-rulesets
version 1.18.1.