|
1 | 1 | { |
2 | 2 | "openapi": "3.0.0", |
3 | 3 | "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.", |
6 | 6 |
|
7 | 7 | "version": "1.0.1" |
8 | 8 | }, |
|
68 | 68 | "type": "object", |
69 | 69 | "properties": { |
70 | 70 | "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" } |
72 | 74 | } |
73 | 75 | } |
74 | 76 | } |
|
87 | 89 | "in": "path", |
88 | 90 | "required": true, |
89 | 91 | "description": "The ID of the comment", |
90 | | - "schema": { "type": "string" } |
| 92 | + "schema": { "type": "number" } |
91 | 93 | } |
92 | 94 | ], |
93 | 95 | "responses": { |
|
98 | 100 | "schema": { |
99 | 101 | "type": "object", |
100 | 102 | "properties": { |
101 | | - "id": { "type": "string" }, |
| 103 | + "id": { "type": "number" }, |
102 | 104 | "message": { "type": "string" } |
103 | 105 | } |
104 | 106 | } |
|
126 | 128 | "schema": { |
127 | 129 | "type": "object", |
128 | 130 | "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 | + } |
132 | 139 | } |
133 | 140 | } |
134 | 141 | } |
|
141 | 148 | "schema": { |
142 | 149 | "type": "object", |
143 | 150 | "properties": { |
144 | | - "id": { "type": "string" }, |
| 151 | + "id": { "type": "number" }, |
145 | 152 | "message": { "type": "string" } |
146 | 153 | } |
147 | 154 | } |
|
0 commit comments