Open barrett-schonefeld opened 3 years ago
Hey @barrett-schonefeld!
It is likely that the underlying yaml parser does not understand this syntax.
I confirm your finding. We indeed do not resolve the tag properly, and the value we work on is a string scalar "false"
instead of the boolean.
Describe the bug
When API definition is a
yaml
document with!!
syntax to identify the type of the value (!!bool "false"
, for example), Spectral returnsinvalid-ref
errors even when the refs are valid. It is likely that the underlyingyaml
parser does not understand this syntax.To Reproduce
Given this OpenAPI/AsyncAPI document:
Run
spectral lint
See
invalid-ref
errorExpected behavior
I would expect that the refs are resolved properly even when
!!
syntax is used.