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

Test Vectors - Verifiable Credentials - JSON Schema #170

Open
5 tasks
decentralgabe opened this issue Aug 16, 2024 · 2 comments
Open
5 tasks

Test Vectors - Verifiable Credentials - JSON Schema #170

decentralgabe opened this issue Aug 16, 2024 · 2 comments
Labels
testing related to new or existing tests vc related to verifiable credentials

Comments

@decentralgabe
Copy link
Member

This issue outlines gaps in testing of JSON Schema independently along with with its usage in conjunction with the W3C VCDM v1.1. Tasks may have partial test coverage today (linked if true). If sufficient test coverage already exists, please close the task and link the relevant test.

Tasks may need discussion on the best way to approach them. The goal is to create a set of language agnostic test vectors that give us sufficient confidence in maintaining interoperability of features between implementations.

JSON Schema

https://tbd54566975.github.io/web5-spec/#json-schema

  • Create JSON Schemas against Draft 7, 2020-12
  • Validate data against JSON Schemas Draft 7, 2020-12

Note this is generic JSON Schema functionality

VC JSON Schema

https://tbd54566975.github.io/web5-spec/#credential-schema

  • Create a VC JSON Schema of type JsonSchema in a VC
  • Resolve a JSON Schema from a web resource given its id
  • Validate a given VC against a VC JSON Schema of type JsonSchema
@decentralgabe decentralgabe added testing related to new or existing tests vc related to verifiable credentials labels Aug 16, 2024
@nitro-neal
Copy link
Contributor

nitro-neal commented Aug 21, 2024

Would we host some real life json schemas for our testing purposes? We can just put some examples in the web5-spec github?

@decentralgabe
Copy link
Member Author

yes, take a look at the test vectors here for a sense of what's covered -- https://github.com/w3c/vc-json-schema-test-suite/blob/main/tests/input/jsonschema/2020-12/1-schema.json

note, we do not need to do web-based resolution, this can be completely static. but we should have schemas that are fairly robust

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing related to new or existing tests vc related to verifiable credentials
Projects
Status: No status
Development

No branches or pull requests

2 participants