{
  "$id": "document.jsonschema",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "document",
  "type": "object",
  "required": [ "resources" ],
  "properties": {
    "resources": {
      "type": "array",
      "description": "Resources list",
      "items": {
        "oneOf": [
          { "$ref": "package-declaration.jsonschema" },
          { "$ref": "file-declaration.jsonschema" },
          { "$ref": "http-declaration.jsonschema" },
          { "$ref": "user-declaration.jsonschema" },
          { "$ref": "exec-declaration.jsonschema" },
          { "$ref": "network_route-declaration.jsonschema" },
          { "$ref": "iptable-declaration.jsonschema" },
          { "$ref": "container-declaration.jsonschema" },
          { "$ref": "container_network-declaration.jsonschema" }
        ]
      }
    }
  }
}

