Skip to content

Commit ec5344c

Browse files
committed
Update schema
1 parent bb06aaa commit ec5344c

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

docs/openapi.json

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,14 @@
2121
"content": {
2222
"application/json": {
2323
"schema": {
24-
"type": "object",
25-
"properties": {
26-
"comments": {
27-
"type": "array",
28-
"items": {
29-
"type": "object",
30-
"properties": {
31-
"id": { "type": "string" },
32-
"message": { "type": "string" }
33-
}
34-
}
24+
"type": "array",
25+
"items": {
26+
"type": "object",
27+
"properties": {
28+
"id": { "type": "number" },
29+
"message": { "type": "string" },
30+
"created_at": { "type": "string", "format": "date-time" },
31+
"updated_at": { "type": "string", "format": "date-time" }
3532
}
3633
}
3734
}
@@ -50,9 +47,14 @@
5047
"schema": {
5148
"type": "object",
5249
"properties": {
53-
"message": { "type": "string" }
54-
},
55-
"required": ["message"]
50+
"comment": {
51+
"type": "object",
52+
"properties": {
53+
"message": { "type": "string" }
54+
},
55+
"required": ["message"]
56+
}
57+
}
5658
}
5759
}
5860
}
@@ -65,7 +67,7 @@
6567
"schema": {
6668
"type": "object",
6769
"properties": {
68-
"id": { "type": "string" },
70+
"id": { "type": "number" },
6971
"message": { "type": "string" }
7072
}
7173
}

0 commit comments

Comments
 (0)