{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://nao1215.github.io/jsonize/schemas/numactl/hardware.json",
  "title": "numactl/hardware",
  "description": "numactl --hardware memory nodes and distances",
  "x-jsonize": {
    "definition": "numactl/hardware",
    "version": 1
  },
  "type": "object",
  "properties": {
    "available": {
      "type": "object",
      "properties": {
        "count": {
          "type": "integer"
        },
        "nodes": {
          "type": "array",
          "items": {
            "type": "integer"
          }
        }
      },
      "required": [
        "count",
        "nodes"
      ]
    },
    "nodes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "cpus": {
            "type": "object",
            "properties": {
              "node": {
                "type": "integer"
              },
              "cpus": {
                "type": "array",
                "items": {
                  "type": "integer"
                }
              }
            },
            "required": [
              "node",
              "cpus"
            ]
          },
          "memory": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "enum": [
                    "free",
                    "size"
                  ]
                },
                "megabytes": {
                  "type": "integer"
                }
              },
              "required": [
                "name",
                "megabytes"
              ]
            }
          }
        },
        "required": [
          "cpus",
          "memory"
        ]
      }
    },
    "distances": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "node": {
            "type": "integer"
          },
          "distances": {
            "type": "array",
            "items": {
              "type": "integer"
            }
          }
        },
        "required": [
          "node",
          "distances"
        ]
      }
    }
  },
  "required": [
    "available",
    "nodes",
    "distances"
  ]
}
