{
  "$schema": "https://apidocs.iqrf.org/iqrf-gateway-daemon/com.iqrftech.self-desc/schema/jsonschema/1-0-0#",
  "self": {
    "vendor": "com.iqrftech.self-desc",
    "name": "schema__iqrf__IdeCounterpart",
    "format": "jsonschema",
    "version": "1-0-0"
  },
  "type": "object",
  "required": [
    "component",
    "instance",
    "gwIdentName",
    "gwIdentIpStack",
    "gwIdentNetBios",
    "gwIdentPublicIp",
    "operMode"
  ],
  "additionalProperties": false,
  "properties": {
    "component": {
      "title": "Component name",
      "description": "Name of component.",
      "type": "string",
      "enum": [
        "iqrf::IdeCounterpart"
      ]
    },
    "instance": {
      "title": "Instance name",
      "description": "Name of component instance.",
      "type": "string",
      "pattern": "^[a-zA-Z0-9-]+$",
      "example": "IdeCounterpart-1"
    },
    "gwIdentModeByte": {
      "title": "Gateway mode",
      "description": "Gateway mode for identification.",
      "type": "integer",
      "enum": [
        32,
        34
      ],
      "example": 32
    },
    "gwIdentName": {
      "title": "Gateway name",
      "description": "Gateway name for identification.",
      "type": "string",
      "example": "iqrf-gateway-daemon"
    },
    "gwIdentIpStack": {
      "title": "Gateway IP stack",
      "description": "Gateway IP stack version for identification.",
      "type": "string",
      "example": "N/A"
    },
    "gwIdentNetBios": {
      "title": "Gateway hostname",
      "description": "Gateway hostname for identification.",
      "type": "string",
      "example": "N/A"
    },
    "gwIdentPublicIp": {
      "title": "Public IP",
      "description": "Gateway public IP for identification.",
      "type": "string",
      "example": "N/A"
    },
    "operMode": {
      "title": "Operation mode",
      "description": "Gateway mode of operation.",
      "type": "string",
      "enum": [
        "operational",
        "service",
        "forwarding",
        ""
      ],
      "example": "operational"
    },
    "RequiredInterfaces": {
      "title": "Required interfaces",
      "description": "Interfaces required for component operation.",
      "type": "array",
      "items": {
        "title": "Required interface",
        "description": "Interface required for operation.",
        "type": "object",
        "required": [
          "name",
          "target"
        ],
        "additionalProperties": false,
        "properties": {
          "name": {
            "title": "Interface name",
            "description": "Name of required interface.",
            "type": "string",
            "example": "iqrf::IMessagingService"
          },
          "target": {
            "title": "Target implementation",
            "description": "Specification of component instance implementing required interface.",
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "instance": {
                "title": "Instance name.",
                "description": "Name of component instance.",
                "type": "string",
                "minLength": 1
              }
            }
          }
        }
      }
    }
  }
}
