Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: minor improvements #5019

Merged
merged 3 commits into from
Sep 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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