Skip to content

Commit 3453f56

Browse files
committed
Update schema for all CRUD
1 parent ec5344c commit 3453f56

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

docs/openapi.json

Lines changed: 16 additions & 9 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
},
@@ -68,7 +68,9 @@
6868
"type": "object",
6969
"properties": {
7070
"id": { "type": "number" },
71-
"message": { "type": "string" }
71+
"message": { "type": "string" },
72+
"created_at": { "type": "string", "format": "date-time" },
73+
"updated_at": { "type": "string", "format": "date-time" }
7274
}
7375
}
7476
}
@@ -87,7 +89,7 @@
8789
"in": "path",
8890
"required": true,
8991
"description": "The ID of the comment",
90-
"schema": { "type": "string" }
92+
"schema": { "type": "number" }
9193
}
9294
],
9395
"responses": {
@@ -98,7 +100,7 @@
98100
"schema": {
99101
"type": "object",
100102
"properties": {
101-
"id": { "type": "string" },
103+
"id": { "type": "number" },
102104
"message": { "type": "string" }
103105
}
104106
}
@@ -126,9 +128,14 @@
126128
"schema": {
127129
"type": "object",
128130
"properties": {
129-
"message": { "type": "string" }
130-
},
131-
"required": ["message"]
131+
"comment": {
132+
"type": "object",
133+
"properties": {
134+
"message": { "type": "string" }
135+
},
136+
"required": ["message"]
137+
}
138+
}
132139
}
133140
}
134141
}
@@ -141,7 +148,7 @@
141148
"schema": {
142149
"type": "object",
143150
"properties": {
144-
"id": { "type": "string" },
151+
"id": { "type": "number" },
145152
"message": { "type": "string" }
146153
}
147154
}

0 commit comments

Comments
 (0)