Closed yashwason closed 6 months ago
according to https://spec.openapis.org/oas/latest.html#oauth-flow-object the $ref is not supposed to work here ,
usually if $ref is supported it is mentionned in the spec like this
https://spec.openapis.org/oas/latest.html#callback-object
so from my point of view the syntax you are using is not 100 % correct , even if we understand it
I totally missed that; not mentioned in the Bearer authentication section. Thanks for pointing me in the right direction.
Issue description and how to reproduce
Note: This issue occurs only when a
$ref
is used.Provided the below local OpenAPI spec
And referencing a remote spec (via the
$ref
above) as follows:The issue arises during linting with Vacuum, resulting in the following error:
It's important to note that the linting process passes when the
$ref
is replaced with a complete schema.Expected behavior
Vacuum should correctly interpret and validate the provided description when a
$ref
is used, ensuring successful linting without errors.