{
  "definitions": {
    "car": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int64"
        },
        "make": {
          "type": "string"
        },
        "brand": {
          "$ref": "#/definitions/brand"
        }
      }
    },
    "tag": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int64"
        },
        "value": {
          "type": "string"
        }
      }
    },
    "brand": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int64"
        },
        "name": {
          "type": "string"
        }
      }
    },
    "truck": {
      "$ref": "#/definitions/car"
    },
    "batch": {
      "items": {
        "$ref": "#/definitions/brand"
      }
    },
    "batch2": {
      "items": [
        {
          "$ref": "#/definitions/brand"
        },
        {
          "$ref": "#/definitions/tag"
        }
      ]
    },
    "allofBoth": {
      "allOf": [
        {
          "$ref": "#/definitions/brand"
        },
        {
          "$ref": "#/definitions/tag"
        }
      ]
    },
    "anyofBoth": {
      "anyOf": [
        {
          "$ref": "#/definitions/brand"
        },
        {
          "$ref": "#/definitions/tag"
        }
      ]
    },
    "oneofBoth": {
      "oneOf": [
        {
          "$ref": "#/definitions/brand"
        },
        {
          "$ref": "#/definitions/tag"
        }
      ]
    },
    "notSomething": {
      "not": {
        "$ref": "#/definitions/tag"
      }
    },
    "withAdditional": {
      "additionalProperties": {
        "$ref": "#/definitions/tag"
      }
    },
    "withPattern": {
      "patternProperties": {
        "^x-ab": {
          "$ref": "#/definitions/tag"
        }
      }
    },
    "withAdditionalItems": {
      "additionalItems": {
        "$ref": "#/definitions/tag"
      }
    },
    "deps": {
      "dependencies": {
        "something": {
          "$ref": "#/definitions/tag"
        }
      }
    },
    "defined": {
      "definitions": {
        "something": {
          "$ref": "#/definitions/tag"
        }
      }
    }
  }
}