{

"components": {
  "schemas": {
    "request": {
      "post": {
        "type": "object",
        "xml": { "name": "/" },
        "properties": {
          "department": {
            "type": "object",
            "required": ["name"],
            "properties": { "$ref": "department.json#/components/schemas/request_properties" }
          }
        }
      },
      "put": {
        "type": "object",
        "xml": { "name": "/" },
        "properties": {
          "department": {
            "type": "object",
            "properties": { "$ref": "department.json#/components/schemas/request_properties" }
          }
        }
      }
    },
    "request_properties": {
      "name": { "type": "string", "example": "Support" },
      "description": { "type": "string", "example": "Support Department" }
    },
    "response": {
      "type": "object",
      "xml": { "name": "/", "wrapped": true },
      "properties": {
        "department": {
          "type": "object",
          "required": ["name"],
          "properties": {
            "id": { "$ref": "../../components.json#/components/response/schemas/id" },
            "name": { "type": "string", "example": "Support" },
            "description": { "type": "string", "example": "Support Department" }
          }
        }
      }
    }
  }
}

}