question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support json-schema under https

See original GitHub issue

I expect

Schemas to be downloaded under HTTPS

To Reproduce

  1. 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:closed
  • Created 3 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
P0lipcommented, Feb 25, 2021

@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.

0reactions
Relequestualcommented, Nov 12, 2021

Seems reasonable, though I don’t know whether in jsonschema, http:// is supposed to be an URI or an URL… - @ioggstream

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found