Skip to content

Commit

Permalink
feat(core-types): allow inline @context for Credentials and Presentat…
Browse files Browse the repository at this point in the history
…ions

fixes #1073
  • Loading branch information
mirceanis committed Feb 9, 2023
1 parent ba7a303 commit 2813ae9
Show file tree
Hide file tree
Showing 8 changed files with 217 additions and 225 deletions.
263 changes: 131 additions & 132 deletions packages/core-types/src/plugin.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2090,17 +2090,7 @@
]
},
"@context": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
]
"$ref": "#/components/schemas/ContextType"
},
"issuanceDate": {
"type": "string"
Expand Down Expand Up @@ -2161,6 +2151,23 @@
},
"description": "The value of the credentialSubject property is defined as a set of objects that contain one or more properties that are each related to a subject of the verifiable credential. Each object MAY contain an id.\n\nSee {@link https://www.w3.org/TR/vc-data-model/#credential-subject | Credential Subject }"
},
"ContextType": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
},
{
"type": "object"
}
],
"description": "The data type for `@context` properties of credentials, presentations, etc."
},
"CredentialStatusReference": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -2206,17 +2213,7 @@
]
},
"@context": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
]
"$ref": "#/components/schemas/ContextType"
},
"verifier": {
"type": "array",
Expand Down Expand Up @@ -2940,17 +2937,7 @@
]
},
"@context": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
]
"$ref": "#/components/schemas/ContextType"
},
"issuanceDate": {
"type": "string"
Expand Down Expand Up @@ -3011,6 +2998,23 @@
},
"description": "The value of the credentialSubject property is defined as a set of objects that contain one or more properties that are each related to a subject of the verifiable credential. Each object MAY contain an id.\n\nSee {@link https://www.w3.org/TR/vc-data-model/#credential-subject | Credential Subject }"
},
"ContextType": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
},
{
"type": "object"
}
],
"description": "The data type for `@context` properties of credentials, presentations, etc."
},
"CredentialStatusReference": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -3056,17 +3060,7 @@
]
},
"@context": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
]
"$ref": "#/components/schemas/ContextType"
},
"verifier": {
"type": "array",
Expand Down Expand Up @@ -3777,17 +3771,7 @@
]
},
"@context": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
]
"$ref": "#/components/schemas/ContextType"
},
"issuanceDate": {
"type": "string"
Expand Down Expand Up @@ -3848,6 +3832,23 @@
},
"description": "The value of the credentialSubject property is defined as a set of objects that contain one or more properties that are each related to a subject of the verifiable credential. Each object MAY contain an id.\n\nSee {@link https://www.w3.org/TR/vc-data-model/#credential-subject | Credential Subject }"
},
"ContextType": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
},
{
"type": "object"
}
],
"description": "The data type for `@context` properties of credentials, presentations, etc."
},
"CredentialStatusReference": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -3893,17 +3894,7 @@
]
},
"@context": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
]
"$ref": "#/components/schemas/ContextType"
},
"verifier": {
"type": "array",
Expand Down Expand Up @@ -4173,17 +4164,7 @@
]
},
"@context": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
]
"$ref": "#/components/schemas/ContextType"
},
"issuanceDate": {
"type": "string"
Expand Down Expand Up @@ -4216,6 +4197,23 @@
},
"description": "A proof property of a {@link VerifiableCredential } or {@link VerifiablePresentation }"
},
"ContextType": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
},
{
"type": "object"
}
],
"description": "The data type for `@context` properties of credentials, presentations, etc."
},
"ICreateVerifiablePresentationArgs": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -4351,17 +4349,7 @@
]
},
"@context": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
]
"$ref": "#/components/schemas/ContextType"
},
"verifier": {
"type": "array",
Expand Down Expand Up @@ -4473,17 +4461,7 @@
]
},
"@context": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
]
"$ref": "#/components/schemas/ContextType"
},
"issuanceDate": {
"type": "string"
Expand Down Expand Up @@ -4544,6 +4522,23 @@
},
"description": "The value of the credentialSubject property is defined as a set of objects that contain one or more properties that are each related to a subject of the verifiable credential. Each object MAY contain an id.\n\nSee {@link https://www.w3.org/TR/vc-data-model/#credential-subject | Credential Subject }"
},
"ContextType": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
},
{
"type": "object"
}
],
"description": "The data type for `@context` properties of credentials, presentations, etc."
},
"CredentialStatusReference": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -4699,17 +4694,7 @@
]
},
"@context": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
]
"$ref": "#/components/schemas/ContextType"
},
"verifier": {
"type": "array",
Expand Down Expand Up @@ -4815,17 +4800,7 @@
]
},
"@context": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
]
"$ref": "#/components/schemas/ContextType"
},
"issuanceDate": {
"type": "string"
Expand Down Expand Up @@ -4886,6 +4861,23 @@
},
"description": "The value of the credentialSubject property is defined as a set of objects that contain one or more properties that are each related to a subject of the verifiable credential. Each object MAY contain an id.\n\nSee {@link https://www.w3.org/TR/vc-data-model/#credential-subject | Credential Subject }"
},
"ContextType": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
},
{
"type": "object"
}
],
"description": "The data type for `@context` properties of credentials, presentations, etc."
},
"CredentialStatusReference": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -5265,17 +5257,7 @@
]
},
"@context": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
]
"$ref": "#/components/schemas/ContextType"
},
"issuanceDate": {
"type": "string"
Expand Down Expand Up @@ -5335,6 +5317,23 @@
}
},
"description": "The value of the credentialSubject property is defined as a set of objects that contain one or more properties that are each related to a subject of the verifiable credential. Each object MAY contain an id.\n\nSee {@link https://www.w3.org/TR/vc-data-model/#credential-subject | Credential Subject }"
},
"ContextType": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
},
{
"type": "object"
}
],
"description": "The data type for `@context` properties of credentials, presentations, etc."
}
},
"methods": {
Expand Down
Loading

0 comments on commit 2813ae9

Please sign in to comment.