{
  "@context": {
    "ixo": "https://w3id.org/ixo/ns/protocol/",
    "@id": "@type",
    "type": "@type",
    "@protected": true
  },
  "type": "ixo:entity#surveyTemplate",
  "question": {
    "title": "Unblock 4: Credential Logic & Schema Draft",
    "description": "Design a digital proof for a skill or a task. Decide what information it must hold to be verifiable.",
    "pages": [
      {
        "name": "logic_design",
        "elements": [
          {
            "type": "text",
            "name": "schema:credentialTitle",
            "title": "Credential Title",
            "description": "What is the name of this proof? Example: Basic Solar Repair Level 1",
            "isRequired": true
          },
          {
            "type": "text",
            "name": "ixo:issuerEntity",
            "title": "Issuer",
            "description": "The trusted person or group who signs this. Example: Green Energy Hub.",
            "isRequired": true
          },
          {
            "type": "text",
            "name": "schema:recipient",
            "title": "Subject or Recipient",
            "description": "Who is this credential being issued to? (e.g., The Student or their DID).",
            "isRequired": true
          },
          {
            "type": "comment",
            "name": "ixo:assessmentResult",
            "title": "Assessment or Skill Result",
            "description": "What exactly did the person achieve? Describe the score or skill level.",
            "isRequired": true
          },
          {
            "type": "panel",
            "name": "validity_panel",
            "elements": [
              {
                "type": "text",
                "name": "schema:datePublished",
                "title": "Issue Date",
                "isRequired": true,
                "inputType": "date"
              },
              {
                "type": "radiogroup",
                "name": "ixo:expirationPolicy",
                "title": "Does this proof expire?",
                "isRequired": true,
                "choices": [
                  {
                    "value": "never",
                    "text": "It stays valid forever."
                  },
                  {
                    "value": "renewal",
                    "text": "It expires (needs to be checked again)."
                  }
                ]
              },
              {
                "type": "text",
                "name": "schema:expires",
                "visibleIf": "{ixo:expirationPolicy} = 'renewal'",
                "title": "Expiry Date (if relevant)",
                "inputType": "date"
              }
            ],
            "title": "Dates and Expiry"
          },
          {
            "type": "comment",
            "name": "ixo:verificationMethod",
            "title": "Verification or Revocation Method",
            "description": "How does someone check if this is real? How would you cancel it if it was issued by mistake?",
            "isRequired": true
          },
          {
            "type": "file",
            "name": "ixo:schemaVisual",
            "title": "Upload a Diagram or Table ",
            "description": "If you designed your schema as a drawing or table, upload the photo here.",
            "isRequired": true,
            "sourceType": "file-camera"
          }
        ]
      }
    ],
    "widthMode": "static",
    "width": "800px",
    "headerView": "advanced"
  }
}