Moved to https://github.com/digitalbazaar/did-core-json-schema
Last active
September 25, 2024 21:54
-
-
Save BigBlueHat/4d4eb257a1df1d17d3104b51a4db24ad to your computer and use it in GitHub Desktop.
DRAFT: DID Core JSON Schema
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "http://json-schema.org/draft-04/schema#", | |
"type": "object", | |
"properties": { | |
"@context": { | |
"type": "array", | |
"items": [ | |
{ | |
"type": "string" | |
} | |
] | |
}, | |
"id": { | |
"type": "string" | |
}, | |
"alsoKnownAs": { | |
"anyOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"type": "array", | |
"items": [ | |
{ | |
"type": "string" | |
} | |
] | |
} | |
] | |
}, | |
"controller": { | |
"type": "array" | |
}, | |
"authentication": { | |
"type": "array", | |
"items": [ | |
{ | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"type": { | |
"type": "string" | |
}, | |
"controller": { | |
"type": "string" | |
}, | |
"publicKeyMultibase": { | |
"type": "string" | |
} | |
} | |
} | |
] | |
}, | |
"capabilityInvocation": { | |
"type": "array", | |
"items": [ | |
{ | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"type": { | |
"type": "string" | |
}, | |
"controller": { | |
"type": "string" | |
}, | |
"publicKeyMultibase": { | |
"type": "string" | |
} | |
} | |
} | |
] | |
}, | |
"capabilityDelegation": { | |
"type": "array", | |
"items": [ | |
{ | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"type": { | |
"type": "string" | |
}, | |
"controller": { | |
"type": "string" | |
}, | |
"publicKeyMultibase": { | |
"type": "string" | |
} | |
} | |
} | |
] | |
}, | |
"assertionMethod": { | |
"type": "array", | |
"items": [ | |
{ | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"type": { | |
"type": "string" | |
}, | |
"controller": { | |
"type": "string" | |
}, | |
"publicKeyMultibase": { | |
"type": "string" | |
} | |
} | |
} | |
] | |
} | |
}, | |
"required": [ | |
"id" | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment