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
Describe the bug
In an attempt to work around #1314, I found that when overriding only the file$ref resolver, the default http and https$ref resolvers are not used and are replaced with the provided file$ref resolver.
$ ts-node C:\dev\script.ts
ENOENT: no such file or directory, open 'C:\api\dillonredding\4b3792af17a7335bca325b64cbf74e74\raw\4e450ed7b12c87f99245ee0bf20db08497130508\openapi-components.yaml'
If you'd like [to ...] adjust the resolution, you are absolutely fine to do it. In order to achieve that, you need to create a custom json-ref-resolver instance. [Emphasis mine]
I interpret this as being able to customize specific resolvers. Customizing the file$ref resolver shouldn't require reimplementing the others.
Environment:
TypeScript: v3.9.6
Spectral: v5.5.0
Node: v12.15.0
Windows: 10 Enterprise
The text was updated successfully, but these errors were encountered:
Describe the bug
In an attempt to work around #1314, I found that when overriding only the
file
$ref
resolver, the defaulthttp
andhttps
$ref
resolvers are not used and are replaced with the providedfile
$ref
resolver.To Reproduce
C:/api/openapi.yaml
:C:/api/components.yaml
:C:/dev/script.ts
:Expected behavior
According to the documentation:
I interpret this as being able to customize specific resolvers. Customizing the
file
$ref
resolver shouldn't require reimplementing the others.Environment:
The text was updated successfully, but these errors were encountered: