@ts-rest/fastify
Advanced tools
Comparing version 3.26.0 to 3.26.1
# @ts-rest/fastify | ||
## 3.26.1 | ||
## 3.26.0 | ||
@@ -4,0 +6,0 @@ |
@@ -100,7 +100,6 @@ 'use strict'; | ||
const statusCode = result.status; | ||
const responseType = appRoute.responses[statusCode]; | ||
let validatedResponseBody = result.body; | ||
if (options.responseValidation) { | ||
const response = core.validateResponse({ | ||
responseType, | ||
appRoute, | ||
response: { | ||
@@ -113,2 +112,3 @@ status: statusCode, | ||
} | ||
const responseType = appRoute.responses[statusCode]; | ||
if (core.isAppRouteOtherResponse(responseType)) { | ||
@@ -115,0 +115,0 @@ reply.header('content-type', responseType.contentType); |
{ | ||
"name": "@ts-rest/fastify", | ||
"version": "3.26.0", | ||
"version": "3.26.1", | ||
"peerDependencies": { | ||
"fastify": "^4.0.0", | ||
"zod": "^3.0.0", | ||
"@ts-rest/core": "3.26.0" | ||
"@ts-rest/core": "3.26.1" | ||
}, | ||
@@ -9,0 +9,0 @@ "peerDependenciesMeta": { |
@@ -10,16 +10,8 @@ # ts-rest | ||
<p align="center"> | ||
<a href="https://www.npmjs.com/package/@ts-rest/core"> | ||
<img src="https://img.shields.io/npm/v/@ts-rest/core.svg" alt="langue typescript"/> | ||
</a> | ||
<a href="https://www.npmjs.com/package/@ts-rest/core"><img src="https://img.shields.io/npm/v/@ts-rest/core.svg" alt="langue typescript"/></a> | ||
<img alt="Github Workflow Status" src="https://img.shields.io/github/actions/workflow/status/ts-rest/ts-rest/release.yml?branch=main"/> | ||
<a href="https://www.npmjs.com/package/@ts-rest/core"> | ||
<img alt="npm" src="https://img.shields.io/npm/dw/@ts-rest/core"/> | ||
</a> | ||
<a href="https://github.com/ts-rest/ts-rest/blob/main/LICENSE"> | ||
<img alt="License" src="https://img.shields.io/github/license/ts-rest/ts-rest"/> | ||
</a> | ||
<a href="https://www.npmjs.com/package/@ts-rest/core"><img alt="npm" src="https://img.shields.io/npm/dw/@ts-rest/core"/></a> | ||
<a href="https://github.com/ts-rest/ts-rest/blob/main/LICENSE"><img alt="License" src="https://img.shields.io/github/license/ts-rest/ts-rest"/></a> | ||
<img alt="Bundle Size" src="https://img.shields.io/bundlephobia/minzip/@ts-rest/core?label=%40ts-rest%2Fcore"/> | ||
<a href="https://discord.com/invite/2Megk85k5a"> | ||
<img alt="Discord" src="https://img.shields.io/discord/1055855205960392724"/> | ||
</a> | ||
<a href="https://discord.com/invite/2Megk85k5a"><img alt="Discord" src="https://img.shields.io/discord/1055855205960392724"/></a> | ||
</p> | ||
@@ -55,3 +47,3 @@ | ||
responses: { | ||
200: c.response<Post[]>(), // <-- OR normal TS types | ||
200: c.type<Post[]>(), // <-- OR normal TS types | ||
}, | ||
@@ -58,0 +50,0 @@ headers: z.object({ |
Sorry, the diff of this file is not supported yet
22473
148