diff --git a/next-swagger-doc.json b/next-swagger-doc.json index 78b2e99..774fed8 100644 --- a/next-swagger-doc.json +++ b/next-swagger-doc.json @@ -43,6 +43,34 @@ "image": { "type": "string", "format": "uri" }, "timezone": { "type": "string", "description": "User timezone" } } + }, + "SimpleUser": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "name": { "type": "string" } + } + }, + "Event": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "title": { "type": "string" }, + "description": { "type": "string" }, + "start_time": { "type": "string", "format": "date-time" }, + "end_time": { "type": "string", "format": "date-time" }, + "status": { "type": "string" }, + "location": { "type": "string" }, + "organizer": { + "$ref": "#/components/schemas/SimpleUser" + }, + "participants": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SimpleUser" + } + } + } } } },