w3c / vc-json-schema

A mechanism to use JSON Schemas with Verifiable Credentials
https://w3c.github.io/vc-json-schema
Other
27 stars 8 forks source link

unresolvable https://www.w3.org/2022/credentials/v2/json-schema-credential-schema.json #234

Closed mjfelis closed 2 months ago

mjfelis commented 2 months ago

GET https://www.w3.org/2022/credentials/v2/json-schema-credential-schema.json: not found

{
  "id": "https://www.w3.org/2022/credentials/v2/json-schema-credential-schema.json",
  "type": "JsonSchema",
  "digestSRI": "sha384-S57yQDg1MTzF56Oi9DbSQ14u7jBy0RDdx0YbeV7shwhCS88G8SCXeFq82PafhCrW"
}
decentralgabe commented 2 months ago

Thanks @mjfelis this needs to be fixed. The schemas are currently hosted here -- https://github.com/w3c/vc-data-model/tree/main/schema but not replicated on the w3 site. Paging @iherman to suggest the best way to support the schema files being hosted properly.

iherman commented 2 months ago

@decentralgabe sorry, I missed this one, it got lost among the after-vacation mail invasion :-)

To be honest, it is the first time I see this W3C URL. Is this really where we want to store the schema? I mean, is the URL cast in concrete by now?

The reason I am asking because the VC URI landscape is fairly chaotic. Here are just some:

etc. Introducing now https://www.w3.org/2022/credentials/v2/ just adds to the mess.

Would it be possible to simply use https://www.w3.org/ns/credentials/json-schema.json (or something like that)?

Once we decide on this, I am happy to set up a redirection.

The other question: is this schema file reasonably stable? At some point we should "freeze" these files by putting them to the W3C site and not redirect to github...

cc-ing @msporny to be consistent with other URLs

msporny commented 2 months ago

https://www.w3.org/ns/credentials/json-schema.json

This is just the schema for v2.0, IIUC. We should version it. Perhaps something like:

https://www.w3.org/ns/credentials/json-schema/v2.json ?

iherman commented 2 months ago

https://www.w3.org/ns/credentials/json-schema.json

This is just the schema for v2.0, IIUC. We should version it. Perhaps something like:

https://www.w3.org/ns/credentials/json-schema/v2.json ?

Works for me.

decentralgabe commented 2 months ago

https://www.w3.org/ns/credentials/json-schema/v2.json works for me too

iherman commented 2 months ago

https://www.w3.org/ns/credentials/json-schema/v2.json is now alive, and redirects to https://w3c.github.io/vc-json-schema/schema/json-schema-credential-schema.json

iherman commented 2 months ago

I have raised PR #237 to replace the URL in the spec. This issue can be closed if and when that PR is merged.

@mjfelis you are welcome to adapt your application to the new URL; it should work now.