{"id":22267801,"url":"https://github.com/transmute-industries/vc-json-schema","last_synced_at":"2026-01-06T01:36:06.901Z","repository":{"id":65591980,"uuid":"567385007","full_name":"transmute-industries/vc-json-schema","owner":"transmute-industries","description":"Validating Verifiable Credentials with JSON Schema","archived":false,"fork":false,"pushed_at":"2023-04-22T16:42:40.000Z","size":110,"stargazers_count":4,"open_issues_count":3,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-30T13:28:23.190Z","etag":null,"topics":["decentralized-identifiers","did","verifiable-credentials","w3c"],"latest_commit_sha":null,"homepage":"https://transmute-industries.github.io/vc-json-schema","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/transmute-industries.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-17T17:16:09.000Z","updated_at":"2024-09-10T13:58:47.000Z","dependencies_parsed_at":"2024-05-01T09:53:36.592Z","dependency_job_id":null,"html_url":"https://github.com/transmute-industries/vc-json-schema","commit_stats":null,"previous_names":["transmute-industries/vc-json-schema"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transmute-industries%2Fvc-json-schema","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transmute-industries%2Fvc-json-schema/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transmute-industries%2Fvc-json-schema/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transmute-industries%2Fvc-json-schema/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/transmute-industries","download_url":"https://codeload.github.com/transmute-industries/vc-json-schema/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245485683,"owners_count":20623237,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["decentralized-identifiers","did","verifiable-credentials","w3c"],"created_at":"2024-12-03T11:08:54.460Z","updated_at":"2026-01-06T01:36:06.869Z","avatar_url":"https://github.com/transmute-industries.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Validating Verifiable Credentials with JSON Schema\n\n- [Editors Draft](https://transmute-industries.github.io/vc-json-schema/)\n\n### Discussion Forums\n* [W3C Credentials Community Group Mailing List (Incubation)](https://lists.w3.org/Archives/Public/public-credentials/)\n* [W3C Verifiable Credentials WG Mailing List (Standardization)](https://lists.w3.org/Archives/Public/public-vc-wg/)\n\n### Usage\n\n```shell\n#!/bin/bash \n\nJWT=$(cat ./example/vc.jwt)\njq -R 'split(\".\") | .[1] | @base64d | fromjson' \u003c\u003c\u003c \"$JWT\" \u003e ./example/vc.json\n\necho \"🌴 Validation\"\najv --spec=draft2020 compile -c ./customKeywords.js -s ./example/NewCredentialType.yaml\najv --spec=draft2020 validate -c ./customKeywords.js -s ./example/NewCredentialType.yaml -d ./example/vc.json \najv --spec=draft2020 test -c ./customKeywords.js -s ./example/NewCredentialType.yaml -d ./example/vc.json --valid\n\n\ncurl -s https://transmute-industries.github.io/vc-json-schema/example/NewCredentialType.yaml \u003e schema.yaml\ncurl -s https://transmute-industries.github.io/vc-json-schema/example/vc.jwt \u003e vc.jwt\nJWT=$(cat ./vc.jwt)\njq -R 'split(\".\") | .[1] | @base64d | fromjson' \u003c\u003c\u003c \"$JWT\" \u003e ./vc.json\najv --spec=draft2020 test -c ./customKeywords.js -s ./schema.yaml -d ./vc.json --valid\n```\n\nSee also [demo.sh](./demo.sh).\n\n#### Contributing\n\n```\ngit clone git@github.com:transmute-industries/vc-json-schema.git\ncd vc-json-schema\n```\n\n### Example\n\nSee [NewCredentialType.yaml](./example/NewCredentialType.yaml) and [vc.jwt](./example/vc.jwt).\n\n```yaml\n$id: https://vendor.example/schemas/credential.yaml\ntitle: Example Credential\ndescription: \u003e-\n  An example verifiable credential with status and schema.\nexample: |-\n  {\n    \"@context\": [\n      \"https://www.w3.org/ns/credentials/v2\",\n      \"https://w3id.org/vc/status-list/2021/v1\",\n      \"https://w3id.org/vc/schema/2023/v1\"\n    ],\n    \"id\": \"http://vendor.example/credentials/1776\",\n    \"type\": [\"VerifiableCredential\", \"NewCredentialType\"],\n    \"issuer\": {\n      \"id\": \"did:example:123\",\n      \"type\": [\"Organization\", \"OrganizationType\"]\n    },\n    \"validFrom\": \"2010-01-01T19:23:24Z\",\n    \"credentialSchema\": {\n      \"id\": \"https://vendor.example/schemas/credential.yaml\",\n      \"type\": \"JsonSchema\"\n    },\n    \"credentialStatus\": {\n      \"id\": \"https://vendor.example/credentials/status/3#4\",\n      \"type\": \"StatusList2021Entry\",\n      \"statusPurpose\": \"suspension\",\n      \"statusListIndex\": \"4\",\n      \"statusListCredential\": \"https://vendor.example/credentials/status/3\"\n    },\n    \"credentialSubject\": {\n      \"id\": \"did:example:456\",\n      \"type\": [\"Person\", \"JobType\"],\n      \"claimName\": \"claimValue\"\n    }\n  }\ntype: object\nproperties:\n  '@context':\n    type: array\n    const:\n      - 'https://www.w3.org/ns/credentials/v2'\n      - 'https://w3id.org/vc/status-list/2021/v1'\n      - 'https://w3id.org/vc/schema/2023/v1'\n  type:\n    type: array\n    readOnly: true\n    const:\n      - VerifiableCredential\n      - NewCredentialType\n    default:\n      - VerifiableCredential\n      - NewCredentialType\n    items:\n      type: string\n      enum:\n        - VerifiableCredential\n        - NewCredentialType\n  id:\n    type: string\n  issuer:\n    type: object\n    properties:\n      id:\n        type: string\n      type:\n        type: array\n        readOnly: true\n        const:\n          - Organization\n          - OrganizationType\n        default:\n          - Organization\n          - OrganizationType\n  validFrom:\n    type: string\n  credentialSchema:\n    type: object\n    properties:\n      id:\n        type: string\n      type:\n        type: string\n        const: JsonSchema\n  credentialStatus:\n    type: object\n    properties:\n      id:\n        type: string\n      type:\n        type: string\n        const: StatusList2021Entry\n      statusPurpose:\n        type: string\n      statusListIndex:\n        type: string\n      statusListCredential:\n        type: string\n  credentialSubject:\n    type: object\n    properties:\n      id:\n        type: string\n      type:\n        type: array\n        readOnly: true\n        const:\n          - Person\n          - JobType\n        default:\n          - Person\n          - JobType\n      claimName:\n        type: string\n\nadditionalProperties: false\nrequired:\n  - '@context'\n  - id\n  - type\n  - issuer\n  - validFrom\n  - credentialSchema\n  - credentialStatus\n  - credentialSubject       \n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftransmute-industries%2Fvc-json-schema","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftransmute-industries%2Fvc-json-schema","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftransmute-industries%2Fvc-json-schema/lists"}