Skip to content

Commit ee70055

Browse files
committed
Merge branch 'add-committe-rack-middleware' into add-openapi-ui
2 parents 715f0e1 + 3453f56 commit ee70055

File tree

1 file changed

+33
-24
lines changed

1 file changed

+33
-24
lines changed

docs/openapi.json

Lines changed: 33 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"openapi": "3.0.0",
33
"info": {
4-
"title": "Storyblok API Schema and Validation POC",
5-
"description": "Storyblok API Schema and Validation POC.",
4+
"title": "API Schema and Validation POC",
5+
"description": "API Schema and Validation POC.",
66

77
"version": "1.0.1"
88
},
@@ -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,8 +67,10 @@
6567
"schema": {
6668
"type": "object",
6769
"properties": {
68-
"id": { "type": "string" },
69-
"message": { "type": "string" }
70+
"id": { "type": "number" },
71+
"message": { "type": "string" },
72+
"created_at": { "type": "string", "format": "date-time" },
73+
"updated_at": { "type": "string", "format": "date-time" }
7074
}
7175
}
7276
}
@@ -85,7 +89,7 @@
8589
"in": "path",
8690
"required": true,
8791
"description": "The ID of the comment",
88-
"schema": { "type": "string" }
92+
"schema": { "type": "number" }
8993
}
9094
],
9195
"responses": {
@@ -96,7 +100,7 @@
96100
"schema": {
97101
"type": "object",
98102
"properties": {
99-
"id": { "type": "string" },
103+
"id": { "type": "number" },
100104
"message": { "type": "string" }
101105
}
102106
}
@@ -124,9 +128,14 @@
124128
"schema": {
125129
"type": "object",
126130
"properties": {
127-
"message": { "type": "string" }
128-
},
129-
"required": ["message"]
131+
"comment": {
132+
"type": "object",
133+
"properties": {
134+
"message": { "type": "string" }
135+
},
136+
"required": ["message"]
137+
}
138+
}
130139
}
131140
}
132141
}
@@ -139,7 +148,7 @@
139148
"schema": {
140149
"type": "object",
141150
"properties": {
142-
"id": { "type": "string" },
151+
"id": { "type": "number" },
143152
"message": { "type": "string" }
144153
}
145154
}

0 commit comments

Comments
 (0)