-
-
Notifications
You must be signed in to change notification settings - Fork 240
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 json-schema under https #1432
Comments
I am not understanding the reproduction steps here. You've just got Can you help me understand what the problem is, what the expectations are, what the actual result is? |
Hi @philsturgeon,thanks for replying! We are using spectral in this online validator https://deploy-preview-98--api-validator.netlify.app/ which is a showcase for the Italian API Ruleset, and we get the following error. Ruleset is here https://github.com/italia/api-oas-checker/blob/gh-pages/spectral.yml are we missing something? cc: @emilioSp |
I think we could just update all the URLs to be https://github.com/stoplightio/spectral/search?q=%22http%3A%2F%2Fjson-schema%22 |
Seems reasonable, though I don't know whether in jsonschema, In my local
OT: if you are interested in the ruleset, drop a line ;) |
Either https or http can be used so we might as well use https.
|
Judging by the stack trace, the issue seems to be originating from json-ref-resolver. |
If this will go away with #1054 it sounds like another vote for getting that change done? |
@ioggstream I put a PR that instruments ruleset $ref resolver to avoid reading these $refs entirely. |
It sounds great! Thanks! |
I'm going to close it then. |
Right, they are URIs, not URLs, so may not be changed. |
I expect
Schemas to be downloaded under HTTPS
To Reproduce
grep -r 'https://json-schema.org' .
Expected behavior
Occurrencies of json-schema.org with HTTPS
Instead
Environment (remove any that are not applicable):
Additional context
webpackaging spectral, I get an error when downloading the insecure ref.
It would be great to have an HTTPS reference (probably related to https://github.com/ajv-validator/ajv/tree/master/lib/refs)
cc: @emilioSp
The text was updated successfully, but these errors were encountered: