snap-on-openapi 1.0.26 → 1.0.28

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.
Files changed (2) hide show
  1. package/dist/OpenApi.js +1 -1
  2. package/package.json +1 -1
package/dist/OpenApi.js CHANGED
@@ -284,7 +284,7 @@ export class OpenApi {
284
284
  if (this.config.onResponse) {
285
285
  await this.config.onResponse(onResponse);
286
286
  }
287
- return response;
287
+ return { status: validated.data.status, body: validated.data.body, headers: validated.data.headers };
288
288
  }
289
289
  catch (e) {
290
290
  return await this.handleError(e, originalReq, {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "snap-on-openapi",
3
3
  "author": "Alex Sarychev",
4
- "version": "1.0.26",
4
+ "version": "1.0.28",
5
5
  "description": "Swiftly build type-checked OpenAPI applications with Zod and TypeScript",
6
6
  "type": "module",
7
7
  "license": "ISC",