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
Adding OpenAPI 3.x functions
OpenAPI 3.x detected
index.yaml
1:1 warning api-servers OpenAPI `servers` must be present and non-empty array.
2:6 warning info-contact Info object should contain `contact` object.
2:6 warning info-description OpenAPI object info `description` must be present and non-empty string.
7:9 warning operation-description Operation `description` must be present and non-empty string.
7:9 warning operation-operationId Operation should have an `operationId`.
7:9 warning operation-tags Operation should have non-empty `tags` array.
14:23 error invalid-ref ENOENT: no such file or directory, open '/common.yaml'
✖ 7 problems (1 error, 6 warnings, 0 infos)
Expected behavior
There should not be an invalid-ref error. The reference file path should be ./common.yaml instead of /common.yaml
Environment (remove any that are not applicable):
@stoplight/spectral/4.0.2 darwin-x64 node-v12.8.0
The text was updated successfully, but these errors were encountered:
Describe the bug
Spectral is unable to load external reference file because a
/
is prepend to the path.To Reproduce
index.yaml
common.yaml
Expected behavior
There should not be an
invalid-ref
error. The reference file path should be./common.yaml
instead of/common.yaml
Environment (remove any that are not applicable):
@stoplight/spectral/4.0.2 darwin-x64 node-v12.8.0
The text was updated successfully, but these errors were encountered: