{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/LogicalModels.schema.json",
  "title": "Logical Model Enumeration Schema",
  "description": "JSON Schema defining the structure of the Logical Model enumeration endpoint response",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "logical_model"
    },
    "count": {
      "type": "integer"
    },
    "schemas": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "filename": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "logicalModelUrl": {
            "type": "string"
          },
          "propertyCount": {
            "type": "integer"
          }
        },
        "required": [
          "filename",
          "title",
          "url"
        ]
      }
    }
  },
  "required": [
    "type",
    "count",
    "schemas"
  ],
  "example": {
    "type": "logical_model",
    "count": 5,
    "schemas": [
      {
        "filename": "StructureDefinition-CWT.schema.json",
        "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",
        "url": "./StructureDefinition-CWT.schema.json",
        "propertyCount": 4
      },
      {
        "filename": "StructureDefinition-COSEHeader.schema.json",
        "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",
        "url": "./StructureDefinition-COSEHeader.schema.json",
        "propertyCount": 3
      },
      {
        "filename": "StructureDefinition-CWTPayload.schema.json",
        "id": "http://smart.who.int/base/StructureDefinition-CWTPayload.schema.json",
        "title": "CBOR Web Token (CWT) Payload (Common)",
        "description": "Logical Model for CBOR Web Token (CWT) Payload Logical Modelin CWT Payload https://www.iana.org/assignments/cwt/cwt.xhtml ",
        "url": "./StructureDefinition-CWTPayload.schema.json",
        "propertyCount": 5
      },
      {
        "filename": "StructureDefinition-SchemeInformation.schema.json",
        "id": "http://smart.who.int/base/StructureDefinition-SchemeInformation.schema.json",
        "title": "Scheme Information",
        "description": "Logical Model for Information on the trusted list and its issuing scheme",
        "url": "./StructureDefinition-SchemeInformation.schema.json",
        "propertyCount": 21
      },
      {
        "filename": "StructureDefinition-HCert.schema.json",
        "id": "http://smart.who.int/base/StructureDefinition-HCert.schema.json",
        "title": "Health Certificate",
        "description": "Logical Model for the HCERT",
        "url": "./StructureDefinition-HCert.schema.json",
        "propertyCount": 6
      }
    ]
  }
}