{

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

}