Support json-schema under https
See original GitHub issueI 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
- Empty result.
Environment (remove any that are not applicable):
- Library version: 5.7.2
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
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (7 by maintainers)
Top Results From Across the Web
JSON Schema | The home of JSON Schema
JSON Schema is hypermedia ready, and ideal for annotating your existing JSON-based HTTP API. JSON Schema documents are identified by URIs, which can...
Read more >Implementations - JSON Schema
Implementations below are written in different languages, and support part, or all, of at least one recent version of the specification.
Read more >Getting Started Step-By-Step - JSON Schema
The type validation keyword defines the first constraint on our JSON data and in this case it has to be a JSON Object....
Read more >Structuring a complex schema — Understanding JSON ...
Likewise in JSON Schema, for anything but the most trivial schema, it's really useful to structure the schema into parts that can be...
Read more >A Vocabulary for Structural Validation of JSON - JSON Schema
For additional information, see https://json-schema.org/.¶ ... Certain vocabularies are optional to support, which is explained in detail in the relevant ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@ioggstream I put a PR that instruments ruleset $ref resolver to avoid reading these $refs entirely. That shouldn’t be needed at all, since AJV already has these schemas loaded, thus it should be able to resolve it on its own.
Right, they are URIs, not URLs, so may not be changed. The URIs for the dialect identifiers of all published drafts are set in stone. In newer versions, we use HTTPS. It is never expected that an implementation should go download these on the fly! As, given they are URIs, that might not be possible.