-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Custom Resolvers #23
Comments
@patrickDouglas 👋 Interesting idea!
That would be great! One little thingie that may be worth attention: |
Has there been any movement on this? I personally think the best route would be to be able to define all appropriate CLI options in the Another idea would be to just point to a JS File (in each workspace) that exports an instance of Spectral that the user would like to use (would potentially also help solve: #84) |
@nulltoken I've started to dive into the code here, but I don't see how we can pass in |
I'm having a similiar use case where I want to use the custom resolver in the VSCode extention. |
Describe the solution you'd like
Please add a new Setting that would allow for Custom $ref Resolving (which is already support by Spectral): https://meta.stoplight.io/docs/spectral/docs/guides/2-cli.md#custom-ref-resolving .
I would this it would be a new Setting
spectral.resolverFile
:spectral.resolverFile
: Location of the resolver file to use when Custom $ref Resolving. If omitted, no resolver will be used. Paths are relative to the workspace.This path value would be passed to the Spectral CLI via the
--resolver
flag.I might personally attempt this work in the near future if you don't get this done.
The text was updated successfully, but these errors were encountered: