Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

Commit

Permalink
feat: embed presentation definition (#3533)
Browse files Browse the repository at this point in the history
Signed-off-by: Stas D <stanislav.dmytryshyn@securekey.com>
  • Loading branch information
skynet2 committed Feb 22, 2023
1 parent a948231 commit 02f8084
Showing 1 changed file with 58 additions and 4 deletions.
62 changes: 58 additions & 4 deletions pkg/doc/presexch/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -538,8 +538,35 @@ const DefinitionJSONSchemaV2 = `
"name": { "type": "string" },
"purpose": { "type": "string" },
"format": {
"$ref": "http://identity.foundation/claim-format-registry/schemas/presentation-definition-claim-format-designations.json"
},
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Presentation Definition Claim Format Designations",
"type": "object",
"additionalProperties": false,
"patternProperties": {
"^jwt$|^jwt_vc$|^jwt_vp$": {
"type": "object",
"additionalProperties": false,
"properties": {
"alg": {
"type": "array",
"minItems": 1,
"items": { "type": "string" }
}
}
},
"^ldp_vc$|^ldp_vp$|^ldp$": {
"type": "object",
"additionalProperties": false,
"properties": {
"proof_type": {
"type": "array",
"minItems": 1,
"items": { "type": "string" }
}
}
}
}
},
"group": { "type": "array", "items": { "type": "string" } },
"constraints": {
"type": "object",
Expand Down Expand Up @@ -651,8 +678,35 @@ const DefinitionJSONSchemaV2 = `
"name": { "type": "string" },
"purpose": { "type": "string" },
"format": {
"$ref": "http://identity.foundation/claim-format-registry/schemas/presentation-definition-claim-format-designations.json#"
},
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Presentation Definition Claim Format Designations",
"type": "object",
"additionalProperties": false,
"patternProperties": {
"^jwt$|^jwt_vc$|^jwt_vp$": {
"type": "object",
"additionalProperties": false,
"properties": {
"alg": {
"type": "array",
"minItems": 1,
"items": { "type": "string" }
}
}
},
"^ldp_vc$|^ldp_vp$|^ldp$": {
"type": "object",
"additionalProperties": false,
"properties": {
"proof_type": {
"type": "array",
"minItems": 1,
"items": { "type": "string" }
}
}
}
}
},
"frame": {
"type": "object",
"additionalProperties": true
Expand Down

0 comments on commit 02f8084

Please sign in to comment.