fix schema workbench and credential
This commit is contained in:
parent
717b4ab6d5
commit
baf5c1e924
|
@ -4,11 +4,10 @@
|
||||||
"https://idhub.pangea.org/context/base.jsonld",
|
"https://idhub.pangea.org/context/base.jsonld",
|
||||||
"https://idhub.pangea.org/context/snapshot.jsonld"
|
"https://idhub.pangea.org/context/snapshot.jsonld"
|
||||||
],
|
],
|
||||||
"id": "{{ vc_id }}",
|
"id": "urn:uuid:{{ vc_id }}",
|
||||||
"type": [
|
"type": [
|
||||||
"VerifiableCredential",
|
"VerifiableCredential",
|
||||||
"VerifiableAttestation",
|
"DeviceSnapshot"
|
||||||
"Snapshot"
|
|
||||||
],
|
],
|
||||||
"issuer": {
|
"issuer": {
|
||||||
"id": "{{ issuer_did }}",
|
"id": "{{ issuer_did }}",
|
||||||
|
@ -16,7 +15,6 @@
|
||||||
},
|
},
|
||||||
"issuanceDate": "{{ issuance_date }}",
|
"issuanceDate": "{{ issuance_date }}",
|
||||||
"validFrom": "{{ issuance_date }}",
|
"validFrom": "{{ issuance_date }}",
|
||||||
"validUntil": "{{ validUntil }}",
|
|
||||||
"name": [
|
"name": [
|
||||||
{
|
{
|
||||||
"value": "Snapshot of Workbench script",
|
"value": "Snapshot of Workbench script",
|
||||||
|
@ -36,7 +34,7 @@
|
||||||
"software": "{{ software }}",
|
"software": "{{ software }}",
|
||||||
"timestamp": "{{ timestamp }}",
|
"timestamp": "{{ timestamp }}",
|
||||||
"data": "{{ data }}",
|
"data": "{{ data }}",
|
||||||
"erase": "{{ erase }}"
|
"dataDeletion": "{{ erase }}"
|
||||||
},
|
},
|
||||||
"credentialStatus": {
|
"credentialStatus": {
|
||||||
"id": "{{ credential_status_id}}",
|
"id": "{{ credential_status_id}}",
|
||||||
|
@ -44,7 +42,7 @@
|
||||||
"revocationBitmapIndex": "{{ id_credential }}"
|
"revocationBitmapIndex": "{{ id_credential }}"
|
||||||
},
|
},
|
||||||
"credentialSchema": {
|
"credentialSchema": {
|
||||||
"id": "https://idhub.pangea.org/vc_schemas/snapshot.json",
|
"id": "https://idhub.pangea.org/vc_schemas/v1/workbench.json",
|
||||||
"type": "FullJsonSchemaValidator2021"
|
"type": "FullJsonSchemaValidator2021"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"$id": "https://idhub.pangea.org/vc_schemas/v1/snapshot.json",
|
"$id": "https://idhub.pangea.org/vc_schemas/v1/workbench.json",
|
||||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||||
"title": "Snapshot",
|
"title": "DeviceSnapshot",
|
||||||
"description": "Snapshot create by workbench-script, software for discover hardware in one device.",
|
"description": "Snapshot create by workbench-script, software for discover hardware in one device.",
|
||||||
"name": [
|
"name": [
|
||||||
{
|
{
|
||||||
|
@ -12,16 +12,16 @@
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"allOf": [
|
"allOf": [
|
||||||
{
|
{
|
||||||
"$ref": "https://idhub.pangea.org/vc_schemas/ebsi/attestation.json"
|
"$ref": "https://www.w3.org/2018/credentials/v1"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"properties": {
|
"properties": {
|
||||||
"credentialSubject": {
|
"credentialSubject": {
|
||||||
"description": "Defines additional properties on credentialSubject",
|
"description": "Define the properties of a digital device snapshot",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"id": {
|
"id": {
|
||||||
"description": "Defines a hash of token sign_token",
|
"description": "Defines a hash of id token",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"minLength": 36
|
"minLength": 36
|
||||||
},
|
},
|
||||||
|
@ -47,13 +47,13 @@
|
||||||
},
|
},
|
||||||
"timestamp": {
|
"timestamp": {
|
||||||
"description": "Time when is make this snapshot.",
|
"description": "Time when is make this snapshot.",
|
||||||
"type": "string"
|
"type": "date-time"
|
||||||
},
|
},
|
||||||
"data": {
|
"data": {
|
||||||
"description": "Device details discovery data.",
|
"description": "Device details discovery data.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
},
|
},
|
||||||
"erase": {
|
"dataDeletion": {
|
||||||
"description": "Datas of erase disk process",
|
"description": "Datas of erase disk process",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"minLength": 0
|
"minLength": 0
|
Loading…
Reference in New Issue