Update ld schema to support instances that implement multikey and wytchspace (#643)
This commit is contained in:
parent
6c83d7b67b
commit
8c832383e0
50
core/ld.py
50
core/ld.py
|
@ -458,6 +458,46 @@ schemas = {
|
|||
}
|
||||
},
|
||||
},
|
||||
"w3id.org/security/multikey/v1": {
|
||||
"contentType": "application/ld+json",
|
||||
"documentUrl": "https://w3id.org/security/multikey/v1",
|
||||
"contextUrl": None,
|
||||
"document": {
|
||||
"@context": {
|
||||
"id": "@id",
|
||||
"type": "@type",
|
||||
"@protected": True,
|
||||
"Multikey": {
|
||||
"@id": "https://w3id.org/security#Multikey",
|
||||
"@context": {
|
||||
"@protected": True,
|
||||
"id": "@id",
|
||||
"type": "@type",
|
||||
"controller": {
|
||||
"@id": "https://w3id.org/security#controller",
|
||||
"@type": "@id",
|
||||
},
|
||||
"revoked": {
|
||||
"@id": "https://w3id.org/security#revoked",
|
||||
"@type": "http://www.w3.org/2001/XMLSchema#dateTime",
|
||||
},
|
||||
"expires": {
|
||||
"@id": "https://w3id.org/security#expiration",
|
||||
"@type": "http://www.w3.org/2001/XMLSchema#dateTime",
|
||||
},
|
||||
"publicKeyMultibase": {
|
||||
"@id": "https://w3id.org/security#publicKeyMultibase",
|
||||
"@type": "https://w3id.org/security#multibase",
|
||||
},
|
||||
"secretKeyMultibase": {
|
||||
"@id": "https://w3id.org/security#secretKeyMultibase",
|
||||
"@type": "https://w3id.org/security#multibase",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
"*/schemas/litepub-0.1.jsonld": {
|
||||
"contentType": "application/ld+json",
|
||||
"documentUrl": "http://w3id.org/security/v1",
|
||||
|
@ -561,6 +601,16 @@ schemas = {
|
|||
},
|
||||
},
|
||||
},
|
||||
"purl.org/wytchspace/ns/ap/1.0": {
|
||||
"contentType": "application/ld+json",
|
||||
"documentUrl": "https://purl.org/wytchspace/ns/ap/1.0",
|
||||
"contextUrl": None,
|
||||
"document": {
|
||||
"@context": {
|
||||
"wytch": "https://ns.wytch.space/ap/1.0.jsonld",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
DATETIME_FORMAT = "%Y-%m-%dT%H:%M:%S.Z"
|
||||
|
|
Loading…
Reference in New Issue