{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Subnet",
  "title": "Subnet",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "description": "The unique ID of this subnet."
    },
    "label": {
      "type": "string",
      "description": "The label for this subnet."
    },
    "ipv4": {
      "type": "string",
      "description": "The IPv4 CIDR range for this subnet."
    },
    "linodes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "The Linode ID."
          },
          "interfaces": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer"
                },
                "active": {
                  "type": "boolean"
                }
              }
            }
          }
        }
      },
      "description": "Linodes assigned to this subnet."
    },
    "created": {
      "type": "string",
      "format": "date-time",
      "description": "When this subnet was created."
    },
    "updated": {
      "type": "string",
      "format": "date-time",
      "description": "When this subnet was last updated."
    }
  }
}