Skip to content

Commit

Permalink
docs: add dots
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgeny Zakharov committed May 14, 2022
1 parent a9abce9 commit 11f9559
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Peer dependencies:

## Writing Zod schemas

Extended Zod and Swagger integration are bound to the internal API, so even the patch updates can cause errors
Extended Zod and Swagger integration are bound to the internal API, so even the patch updates can cause errors.

For that reason, `nestjs-zod` uses specific `zod` version inside and re-exports it as `nz`:

Expand Down Expand Up @@ -96,7 +96,7 @@ class AuthController {

The validation pipe uses your Zod schema to parse data from parameter decorator.

When the data is invalid - it throws [ZodValidationException](#validation-exceptions)
When the data is invalid - it throws [ZodValidationException](#validation-exceptions).

### Globally (recommended)

Expand Down Expand Up @@ -153,7 +153,7 @@ It has 2 syntax forms:

The first parameter is `Source`: `'body' | 'query' | 'params'`

When the data is invalid - it throws [ZodValidationException](#validation-exceptions)
When the data is invalid - it throws [ZodValidationException](#validation-exceptions).

```ts
import { ZodGuard } from 'nestjs-zod'
Expand Down Expand Up @@ -239,7 +239,7 @@ import { patchNestjsSwagger } from 'nestjs-zod'
patchNestjsSwagger()
```

Then follow the [Nest.js' Swagger Module Guide](https://docs.nestjs.com/openapi/introduction)
Then follow the [Nest.js' Swagger Module Guide](https://docs.nestjs.com/openapi/introduction).

### Schemas-writing advices

Expand Down

0 comments on commit 11f9559

Please sign in to comment.