Closed sudeshrshetty closed 2 years ago
or I am open to introduce new schema type called binary
or data
with support for various MIME types
Hey! This actually came up in the previous WG call. There was also an ask to be able to display PDFs
@JaceHensley that's great, let me know if someone else working on the same or if I can create a pull request to update the list of schema types and formats in the spec.
Actually I think this issue should be moved over to the Wallet Rendering spec (originally a part of the CM spec here), transferring it over now :)
Discussed on today's call. A third option would be to lean on JSON Schema's non-JSON data handling, which puts the whole binary blob into the value and describes the type on the schema level (see examples)
^ This doesn't have to exclude a URI-based possibility; after WR has a stable version published, we can return to this with a concrete PR
We talk about this in the "DIF CC Credential Manifest + Presentation Exchange Weekly (C&C WG)" every Thursday at 10:00am PT on the DIF Calendar
thanks @JaceHensley
I noticed that Schema types in Display Mapping Object are missing image formats which can potentially be part of a given verifiable credential.
For Example: image of card holder in Citizenship Vocabulary which can also contain ImageObject.
I would like to introduce binaries as one of the schema formats which can help an application previewing credential to handle them differently.
We can support generic binary data with formats containing MIME types or just image MIME types Registration at IANA.
Example:
Credential Display object
sample credential containing png image binary