Skip to content

Instantly share code, notes, and snippets.

@cre8
Last active August 18, 2025 21:14
Show Gist options
  • Select an option

  • Save cre8/df216c5aa52042c41ed17105d843ddb6 to your computer and use it in GitHub Desktop.

Select an option

Save cre8/df216c5aa52042c41ed17105d843ddb6 to your computer and use it in GitHub Desktop.
attachments
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://example.com/schemas/presentation-attachment.json",
"title": "PresentationAttachment",
"type": "object",
"properties": {
"$schema": {
"type": "string"
},
"format": {
"type": "string",
"description": "Format identifier of the attachment (e.g., 'jwt_vc', 'sd-jwt')."
},
"data": {
"description": "Attachment payload (any non-null JSON value).",
"type": ["object", "array", "string", "number", "boolean"],
"allOf": [
{ "not": { "const": "" } }
]
},
"credential_ids": {
"description": "IDs of credentials used; must be non-empty if present.",
"type": "array",
"items": { "type": "string" },
"minItems": 1
}
},
"required": ["format", "data"],
"additionalProperties": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment