Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

publish context file for renderMethod #16

Open
jchartrand opened this issue Oct 18, 2024 · 1 comment
Open

publish context file for renderMethod #16

jchartrand opened this issue Oct 18, 2024 · 1 comment

Comments

@jchartrand
Copy link

At the moment we can use the renderMethod like so in a Verifiable Credential version 2:

"@context": [
        "https://www.w3.org/ns/credentials/v2",
        "https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json",
        "https://w3id.org/security/suites/ed25519-2020/v1"
        {
            "css3MediaQuery": "urn:uuid:c4c53282-e8e2-4914-83d8-566e25d2f899",
            "HTMLRenderingTemplate": "urn:uuid:925d00aa-ae94-4278-89d5-1cb59a8025e8"
        }
    ],
"renderMethod": [
        {
            "id": "https://raw.githubusercontent.com/digitalcredentials/test-files/main/html-templates/mock-MIT-bachelors-template.html",
            "type": "HTMLRenderingTemplate",
            "name": "PDF Display",
            "css3MediaQuery": "@media (orientation: portrait)"
        }
    ]

It would be nice to instead have a context something like:

"@context": [
        "https://www.w3.org/ns/credentials/v2",
        "https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json",
        "https://w3id.org/security/suites/ed25519-2020/v1",
        "https://w3id.org/ns/credentials/render/v1"         <======= NEW 
    ],
"renderMethod": [
        {
            "id": "https://raw.githubusercontent.com/digitalcredentials/test-files/main/html-templates/mock-MIT-bachelors-template.html",
            "type": "HTMLRenderingTemplate",
            "name": "PDF Display",
            "css3MediaQuery": "@media (orientation: portrait)"
        }
    ]

where the https://w3id.org/render/v1 defines the template types and anything else needed for the renderMethod.

@dmitrizagidulin

@davidlehn
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants