{
  "openapi": "3.0.3",
  "info": {
    "title": "COSE Headers (DRAFT) API",
    "description": "Data elements for COSE Headers https://www.iana.org/assignments/cose/cose.xhtml#header-parameters",
    "version": "1.0.0"
  },
  "paths": {
    "/StructureDefinition-COSEHeader.schema.json": {
      "get": {
        "summary": "JSON Schema definition for the Logical Model StructureDefinition-COSEHeader",
        "description": "This endpoint serves the JSON Schema definition for the Logical Model StructureDefinition-COSEHeader.",
        "responses": {
          "200": {
            "description": "The JSON Schema for StructureDefinition-COSEHeader",
            "content": {
              "application/schema+json": {
                "schema": {
                  "$ref": "./StructureDefinition-COSEHeader.schema.json"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "StructureDefinition-COSEHeader": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "$id": "http://smart.who.int/base/StructureDefinition-COSEHeader.schema.json",
        "title": "COSE Headers (DRAFT)",
        "description": "Data elements for COSE Headers https://www.iana.org/assignments/cose/cose.xhtml#header-parameters",
        "type": "object",
        "properties": {
          "resourceType": {
            "type": "string",
            "const": "COSEHeader",
            "description": "Resource type identifier for COSEHeader logical model"
          },
          "1": {
            "type": "string",
            "description": "alg(1)"
          },
          "4": {
            "type": "string",
            "description": "keyid (4)"
          }
        },
        "required": [
          "resourceType"
        ],
        "resourceDefinition": "http://smart.who.int/trust/StructureDefinition/COSEHeader",
        "fhir:parent": "http://hl7.org/fhir/StructureDefinition/Base"
      }
    }
  }
}