{
  "$id": "https://schemas.fermihdi.io/hd/node_registration_response_schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "FermiHDI HD Node successful response",
  "description": "The JSON Schema for a successful registration for a new node with a DMS",
  "type": "object",
  "properties": {
    "dms": {
      "description": "DMS Configurations",
      "type": "object",
      "properties": {
        "registration": {
          "type": "array",
          "items": {
            "description": "An address for the DMS Node",
            "type": "object",
            "properties": {
              "address": {
                "description": "The address for the DMS node",
                "type": "string"
              },
              "port": {
                "description": "The TCP Port for the DMS node",
                "type": "integer"
              }
            }
          }
        },
        "otel": {
          "type": "array",
          "items": {
            "description": "An address for a OTEL Collector Node",
            "type": "object",
            "properties": {
              "address": {
                "description": "The address for the OTEL Collector node",
                "type": "string"
              },
              "port": {
                "description": "The TCP Port for the OTEL Collector node",
                "type": "integer"
              }
            }
          }
        }
      }
    },
    "nodes": {
      "description": "An array of nodes running on this host",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "description": "The unique id of the node",
            "type": "string"
          },
          "x509Certificate": {
            "description": "A x.509 certificate for the node signed by the DMS with a FermiHDI HD signing key as the Root CA",
            "type": "string"
          },
          "systemConfig": {
            "description": "A FermiHDI HD system configuration",
            "$ref": "https://github.com/FermiHDI/schemas/tree/main/hd/system_config_schema.json"
          }
        }
      }
    }
  }
}
