{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "http://smart.who.int/base/StructureDefinition-CWT.schema.json",
  "title": "CBOR Web Token (CWT) Claim",
  "description": "Logical Model for Data elements in CBOR Web Token (CWT) https://www.iana.org/assignments/cwt/cwt.xhtml",
  "type": "object",
  "properties": {
    "resourceType": {
      "type": "string",
      "const": "CWT",
      "description": "Resource type identifier for CWT logical model"
    },
    "header": {
      "$ref": "http://smart.who.int/base/StructureDefinition-COSEHeader.schema.json",
      "description": "Header"
    },
    "payload": {
      "$ref": "http://smart.who.int/base/StructureDefinition-CWTPayload.schema.json",
      "description": "Payload"
    },
    "signature": {
      "type": "string",
      "description": "Signature"
    }
  },
  "required": [
    "resourceType",
    "header",
    "payload",
    "signature"
  ],
  "resourceDefinition": "http://smart.who.int/trust/StructureDefinition/CWT",
  "fhir:parent": "http://hl7.org/fhir/StructureDefinition/Base"
}