Skip to content

Commit

Permalink
docs: minor improvements (#5019)
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzlopak committed Sep 4, 2023
1 parent 07d8bb9 commit 3d10495
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 20 deletions.
2 changes: 2 additions & 0 deletions docs/Guides/Ecosystem.md
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,9 @@ middlewares into Fastify plugins
and lightweight Sequelize plugin for Fastify.
- [`typeorm-fastify-plugin`](https://github.com/jclemens24/fastify-typeorm) A simple
and updated Typeorm plugin for use with Fastify.

#### [Community Tools](#community-tools)

- [`@fastify-userland/workflows`](https://github.com/fastify-userland/workflows)
Reusable workflows for use in the Fastify plugin
- [`fast-maker`](https://github.com/imjuni/fast-maker) route configuration
Expand Down
9 changes: 5 additions & 4 deletions docs/Guides/Getting-Started.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ Let's start!
<a id="install"></a>

Install with npm:
```
```sh
npm i fastify
```

Install with yarn:
```
```sh
yarn add fastify
```

Expand Down Expand Up @@ -208,7 +209,7 @@ Let's rewrite the above example with a database connection.

First, install `fastify-plugin` and `@fastify/mongodb`:

```
```sh
npm i fastify-plugin @fastify/mongodb
```

Expand Down Expand Up @@ -550,7 +551,7 @@ Fastify also has CLI integration thanks to

First, install `fastify-cli`:

```
```sh
npm i fastify-cli
```

Expand Down
33 changes: 18 additions & 15 deletions docs/Guides/Migration-Guide-V4.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,25 +184,28 @@ strict mode: use allowUnionTypes to allow union type keyword at "#/properties/im
```

As such, schemas like below will need to be changed from:
```
type: 'object',
properties: {
api_key: { type: 'string' },
image: { type: ['object', 'array'] }
}
```js
{
type: 'object',
properties: {
api_key: { type: 'string' },
image: { type: ['object', 'array'] }
}
}
```

Into:
```
type: 'object',
properties: {
api_key: { type: 'string' },
image: {
anyOf: [
{ type: 'array' },
{ type: 'object' }
]
```js
{
type: 'object',
properties: {
api_key: { type: 'string' },
image: {
anyOf: [
{ type: 'array' },
{ type: 'object' }
]
}
}
}
```
Expand Down
1 change: 0 additions & 1 deletion docs/Reference/ContentTypeParser.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ if (!fastify.hasContentTypeParser('application/jsoff')){
}
```

=======
#### removeContentTypeParser

With `removeContentTypeParser` a single or an array of content types can be
Expand Down

0 comments on commit 3d10495

Please sign in to comment.