Skip to content

Commit

Permalink
style: remove trailing whitespace (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored Nov 3, 2024
1 parent 9dfecdc commit cfe6069
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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' }
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ declare namespace fastifyResponseValidation {
responseValidation?: boolean;
responseStatusCodeValidation?: boolean;
}

export const fastifyResponseValidation: FastifyResponseValidation
export { fastifyResponseValidation as default }
}
Expand Down

0 comments on commit cfe6069

Please sign in to comment.