{
  "title": "Graph",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "uniqueItems": true,
      "items": {
        "title": "Item",
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "integer"
          },
          "image": {
            "type": "string"
          }
        },
        "required": ["id", "name", "type", "image"],
        "additionalProperties": false
      }

    },
    "relationships": {
      "type": "array",
      "items": {
        "title": "Relationship",
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "source": {
            "type": "integer"
          },
          "target": {
            "type": "integer"
          },
          "type": {
            "type": "integer"
          },
          "suspect": {
            "type": "boolean"
          }
        },
        "required": ["id", "source", "target", "type", "suspect"],
        "additionalProperties": false
      }
    }
  },
  "required": ["items", "relationships"],
  "additionalProperties": false
}
{
  "title": "Graph",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "items": {
      "type": "array",
      "uniqueItems": true,
      "items": {
        "title": "Item",
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "integer"
          },
          "image": {
            "type": "string"
          }
        },
        "required": ["id", "name", "type", "image"],
        "additionalProperties": false
      }

    },
    "relationships": {
      "type": "array",
      "items": {
        "title": "Relationship",
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "source": {
            "type": "integer"
          },
          "target": {
            "type": "integer"
          },
          "type": {
            "type": "integer"
          },
          "suspect": {
            "type": "boolean"
          }
        },
        "required": ["id", "source", "target", "type", "suspect"],
        "additionalProperties": false
      }
    }
  },
  "required": ["name", "items", "relationships"],
  "additionalProperties": false
}
Add required name attribute to hierarchy spec
Add required name attribute to hierarchy spec
