@meith/api 0.29.0 → 0.29.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/openapi.ts +5 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meith/api",
|
|
3
|
-
"version": "0.29.
|
|
3
|
+
"version": "0.29.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -19,6 +19,6 @@
|
|
|
19
19
|
"access": "public"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@meith/core": "0.29.
|
|
22
|
+
"@meith/core": "0.29.1"
|
|
23
23
|
}
|
|
24
24
|
}
|
package/src/openapi.ts
CHANGED
|
@@ -103,6 +103,11 @@ function responses(route: RouteSpec): JsonSchema {
|
|
|
103
103
|
out['422'] = errorResponse('The board refused the contents by its own posting rules.')
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
+
if (route.request !== undefined) {
|
|
107
|
+
out['400'] = errorResponse('The request body is missing, malformed, or not valid JSON.')
|
|
108
|
+
out['413'] = errorResponse('The request body is larger than the API allows.')
|
|
109
|
+
}
|
|
110
|
+
|
|
106
111
|
return out
|
|
107
112
|
}
|
|
108
113
|
|