Skip to content
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

Use https:// references in JSON schemas #451

Merged

Conversation

antonio-ivanovski
Copy link
Contributor

All of the other DIF schemas are using https:// references to other schemas, not sure why the case is here that http:// was used, but I think that should be changed. This is because validators can consider these two different schemas causing potentially two downloads and two compilings of the schemas. For us as we plan on having the schemas locally (not downloadable), we either have to have two entries or make local workaround (that replaces the http with https).

This PR is fixing this issue for this package schemas.

Copy link
Collaborator

@kimdhamilton kimdhamilton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @ToTeTo, LGTM!

@@ -2,7 +2,7 @@ const Ajv = require('ajv');
const addFormats = require('ajv-formats');

const schemas = {
"http://identity.foundation/claim-format-registry/schemas/presentation-definition-claim-format-designations.json": {
"https://identity.foundation/claim-format-registry/schemas/presentation-definition-claim-format-designations.json": {
"$schema": "http://json-schema.org/draft-07/schema#",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this PR we will merge it as is, but will fork of another PR that generally looks at all the occurrences of http vs https. (like the one here)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kimdhamilton Seems like all the http://identity.foundation (apart from in package.json) where addressed in this PR. So not sure about this comment anymore.

@kimdhamilton kimdhamilton merged commit 6746494 into decentralized-identity:main Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants