{
  "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": {
                "type": "object",
                "properties" : {
                  "data": {
                    "$ref": "#/components/schemas/Request"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "messages/response.json"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Request": {
        "$ref": "messages/request.json"
      }
    }
  }
}
