{

"components": {
  "schemas": {
    "request": {
      "post": {
        "type": "object",
        "xml": { "name": "/" },
        "properties": {
          "category": {
            "type": "object",
            "required": ["name"],
            "properties": { "$ref": "category.json#/components/schemas/request_properties" }
          }
        }
      },
      "put": {
        "type": "object",
        "xml": { "name": "/" },
        "properties": {
          "category": {
            "type": "object",
            "properties": { "$ref": "category.json#/components/schemas/request_properties" }
          }
        }
      }
    },
    "request_properties": {
      "name": { "type": "string", "example": "Equipment" },
      "parent": {
        "$ref": "../../components.json#/components/request/schemas/association_by_name",
        "example": { "name": "Facilities" }
      },
      "default_assignee_id": { "$ref": "../../components.json#/components/common/schemas/association_by_id" },
      "default_tags": { "type": "string", "example": "equipment" }
    },
    "response": {
      "type": "object",
      "xml": { "name": "/", "wrapped": true },
      "properties": {
        "category": {
          "type": "object",
          "properties": {
            "id": { "$ref": "../../components.json#/components/response/schemas/id" },
            "name": { "type": "string", "example": "Equipment" },
            "parent_id": { "$ref": "../../components.json#/components/response/schemas/id" },
            "default_tags": { "type": "string", "example": "equipment" },
            "default_assignee_id": { "$ref": "../../components.json#/components/response/schemas/id" }
          }
        }
      }
    }
  }
}

}