{
"components": { "schemas": { "request": { "post": { "type": "object", "xml": { "name": "/" }, "properties": { "comment": { "type": "object", "required": ["body"], "properties": { "$ref": "comment.json#/components/schemas/request_properties" } } } }, "put": { "type": "object", "xml": { "name": "/" }, "properties": { "comment": { "type": "object", "properties": { "$ref": "comment.json#/components/schemas/request_properties" } } } } }, "request_properties": { "body": { "type": "string", "example": "Comment body" }, "is_private": { "anyOf": [{ "type": "string", "example": "true" }, { "type": "boolean", "example": true }] }, "user_id": { "$ref": "../../components.json#/components/common/schemas/association_by_id" } }, "response": { "type": "object", "xml": { "name": "/", "wrapped": true }, "properties": { "comment": { "type": "object", "properties": { "id": { "$ref": "../../components.json#/components/response/schemas/id" }, "body": { "type": "string", "example": "Comment body" }, "is_private": { "type": "string", "example": "true" }, "created_at": { "type": "string", "example": "2025-01-01T00:00:00.000+01:00" }, "updated_at": { "type": "string", "example": "2025-01-01T00:00:00.000+01:00" }, "user": { "$ref": "../../components.json#/components/response/schemas/user_details" }, "commenter_id": { "$ref": "../../components.json#/components/response/schemas/id" }, "commenter_type": { "type": "string", "example": "Incident" } } } } } } }
}