Skip to content

Commit

Permalink
remove base schema, added minItems and required fields
Browse files Browse the repository at this point in the history
  • Loading branch information
icetrust0212 committed Apr 24, 2024
1 parent ed8e387 commit 1e27ba9
Showing 1 changed file with 115 additions and 105 deletions.
220 changes: 115 additions & 105 deletions credential/reclaim/v0.1.0/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,124 +10,134 @@
"icon": "./icon.svg"
}
},
"allOf": [
{
"$ref": "https://core.schemas.verida.io/base/latest/schema.json"
"properties": {
"appId": {
"title": "App ID",
"description": "Unique id of the task allocated by the allocator node",
"type": "string"
},
{
"properties": {
"appId": {
"title": "App ID",
"description": "Unique id of the task allocated by the allocator node",
"type": "string"
},
"httpProviderId": {
"title": "Http Provider Id",
"description": "ID of http provider",
"type": "array",
"items": {
"httpProviderId": {
"title": "Http Provider Id",
"description": "ID of http provider",
"type": "array",
"minItems": 1,
"items": {
"type": "string"
}
},
"proofs": {
"title": "Proofs",
"description": "Values of public fields defined in schema",
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"required": [
"identifier",
"claimData",
"signature"
],
"properties": {
"identifier": {
"title": "Identifier",
"description": "Identifier of provider",
"type": "string"
}
},
"proofs": {
"title": "Proofs",
"description": "Values of public fields defined in schema",
"type": "array",
"items": {
},
"claimData": {
"title": "Claim Data",
"description": "Verifiable credential data",
"type": "object",
"required": [
"provider",
"identifier"
],
"properties": {
"identifier": {
"title": "Identifier",
"description": "Identifier of provider",
"provider": {
"title": "Protocol",
"description": "Protocol of request",
"type": "string"
},
"claimData": {
"title": "Claim Data",
"description": "Verifiable credential data",
"type": "object",
"properties": {
"provider": {
"title": "Protocol",
"description": "Protocol of request",
"type": "string"
},
"parameters": {
"title": "Parameters of request",
"description": "Stringfied JSON object of parameters and API reqeusts",
"type": "string"
},
"identifier": {
"title": "Identifier of request",
"description": "Identifier of request",
"type": "string"
},
"epoch": {
"title": "Epoch of request",
"description": "Epoch of request",
"type": "string"
}
}
"parameters": {
"title": "Parameters of request",
"description": "Stringfied JSON object of parameters and API reqeusts",
"type": "string"
},
"signature": {
"title": "Signature",
"description": "The signature of verification credential",
"type": "array",
"items": {
"type": "string"
}
"identifier": {
"title": "Identifier of request",
"description": "Identifier of request",
"type": "string"
},
"witnesses": {
"title": "witnesses",
"description": "Witness",
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"title": "ID",
"description": "ID",
"type": "string"
},
"url": {
"title": "URL",
"description": "URL",
"type": "string"
}
}
"epoch": {
"title": "Epoch of request",
"description": "Epoch of request",
"type": "string"
}
}
},
"signature": {
"title": "Signature",
"description": "The signature of verification credential",
"type": "array",
"minItems": 1,
"items": {
"type": "string"
}
},
"witnesses": {
"title": "witnesses",
"description": "Witness",
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"required": [
"id",
"url"
],
"properties": {
"id": {
"title": "ID",
"description": "ID",
"type": "string"
},
"url": {
"title": "URL",
"description": "URL",
"type": "string"
}
}
}
}
},
"sessionId": {
"title": "Session Id",
"description": "Session Id of process",
"type": "string"
},
"reclaimProviderId": {
"title": "Reclaim provider ID",
"description": "The schema ID that added in the project",
"type": "string"
},
"reclaimProviderLabel": {
"title": "Reclaim provider Label",
"description": "The schema label that added in the project",
"type": "string"
},
"did": {
"title": "Verida Did",
"description": "Decentralized Identifier on the Verida network",
"type": "string"
}
},
"required": [
"appId",
"sessionId",
"proofs",
"reclaimProviderId",
"reclaimProviderLabel",
"did"
]
}
},
"sessionId": {
"title": "Session Id",
"description": "Session Id of process",
"type": "string"
},
"reclaimProviderId": {
"title": "Reclaim provider ID",
"description": "The ID of reclaim provider",
"type": "string"
},
"reclaimProviderLabel": {
"title": "Reclaim provider Label",
"description": "The label of reclaim provider",
"type": "string"
},
"id": {
"title": "Did",
"description": "DID of the subject",
"type": "string"
}
},
"required": [
"appId",
"sessionId",
"proofs",
"reclaimProviderId",
"reclaimProviderLabel",
"id"
]
}

0 comments on commit 1e27ba9

Please sign in to comment.