@extk/expressive 0.5.1 → 0.5.2

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/dist/index.js CHANGED
@@ -244,8 +244,16 @@ function buildExpressive(container, swaggerDoc) {
244
244
  const route = pathOverride ?? convertExpressPath(context.path);
245
245
  const pathItem = {
246
246
  // -- defaults --
247
- responses: {},
248
- // has to be defined or else responses are not documented... ¯\_(ツ)_/¯
247
+ responses: {
248
+ // has to be defined or else responses are not documented... ¯\_(ツ)_/¯
249
+ "200": { description: "OK" },
250
+ "201": { description: "Created" },
251
+ "204": { description: "No Content" },
252
+ "400": { description: "Bad Request" },
253
+ "401": { description: "User Unauthorized" },
254
+ "403": { description: "Forbidden" },
255
+ "500": { description: "Internal Server Error" }
256
+ },
249
257
  // -- group defaults --
250
258
  ...configs?.oapi || {},
251
259
  // -- overrides --
package/dist/index.mjs CHANGED
@@ -183,8 +183,16 @@ function buildExpressive(container, swaggerDoc) {
183
183
  const route = pathOverride ?? convertExpressPath(context.path);
184
184
  const pathItem = {
185
185
  // -- defaults --
186
- responses: {},
187
- // has to be defined or else responses are not documented... ¯\_(ツ)_/¯
186
+ responses: {
187
+ // has to be defined or else responses are not documented... ¯\_(ツ)_/¯
188
+ "200": { description: "OK" },
189
+ "201": { description: "Created" },
190
+ "204": { description: "No Content" },
191
+ "400": { description: "Bad Request" },
192
+ "401": { description: "User Unauthorized" },
193
+ "403": { description: "Forbidden" },
194
+ "500": { description: "Internal Server Error" }
195
+ },
188
196
  // -- group defaults --
189
197
  ...configs?.oapi || {},
190
198
  // -- overrides --
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@extk/expressive",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "type": "commonjs",
5
5
  "publishConfig": {
6
6
  "access": "public"