{
  "openapi": "3.0.3",
  "info": {
    "title": "CBOR Web Token (CWT) Claim API",
    "description": "Logical Model for Data elements in CBOR Web Token (CWT) https://www.iana.org/assignments/cwt/cwt.xhtml",
    "version": "1.0.0"
  },
  "paths": {
    "/StructureDefinition-CWT.schema.json": {
      "get": {
        "summary": "JSON Schema definition for the Logical Model StructureDefinition-CWT",
        "description": "This endpoint serves the JSON Schema definition for the Logical Model StructureDefinition-CWT.",
        "responses": {
          "200": {
            "description": "The JSON Schema for StructureDefinition-CWT",
            "content": {
              "application/schema+json": {
                "schema": {
                  "$ref": "./StructureDefinition-CWT.schema.json"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "StructureDefinition-CWT": {
        "$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"
      }
    }
  }
}