From 5f87717d85eea76300e097ff1caa8c9f56ee47fa Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Sun, 3 Nov 2024 10:57:25 +0000 Subject: [PATCH] style: remove trailing whitespace --- README.md | 18 +++++++++--------- types/index.d.ts | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index e7743e7..2782684 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [![NPM version](https://img.shields.io/npm/v/@fastify/response-validation.svg?style=flat)](https://www.npmjs.com/package/@fastify/response-validation) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://standardjs.com/) -A simple plugin that enables response validation for Fastify. +A simple plugin that enables response validation for Fastify. The use of this plugin will slow down your overall performance, so we suggest using it only during development. ## Install @@ -56,16 +56,16 @@ Different content types responses are supported by `@fastify/response-validation description: 'Description and all status-code based properties are working', content: { 'application/json': { - schema: { - name: { type: 'string' }, - image: { type: 'string' }, - address: { type: 'string' } + schema: { + name: { type: 'string' }, + image: { type: 'string' }, + address: { type: 'string' } } - }, + }, 'application/vnd.v1+json': { - schema: { - fullName: { type: 'string' }, - phone: { type: 'string' } + schema: { + fullName: { type: 'string' }, + phone: { type: 'string' } } } } diff --git a/types/index.d.ts b/types/index.d.ts index 2cce2a7..9ac23f0 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -18,7 +18,7 @@ declare namespace fastifyResponseValidation { responseValidation?: boolean; responseStatusCodeValidation?: boolean; } - + export const fastifyResponseValidation: FastifyResponseValidation export { fastifyResponseValidation as default } }