{
  "openapi": "3.0.3",
  "info": {
    "title": "Reference in reference example",
    "version": "1.0.0"
  },
  "paths": {
    "/api/test/ref/in/ref": {
      "post": {
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "../messages/request.json"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ref_prop": {
                      "$ref": "#/components/schemas/Data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Data": {
        "$ref": "../messages/data.json"
      }
    }
  }
}
