Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
finom authored Mar 11, 2024
1 parent e5d2f34 commit 918bd0b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ Hint: To produce less variables you can also declare Zod models as `static` (wit
export default class UserController {
private static userService = UserService;

private static UpdateUserModel = z.object({
static UpdateUserModel = z.object({
name: z.string(),
email: z.string(),
}).strict();

private static UpdateUserQueryModel = z.object({
static UpdateUserQueryModel = z.object({
id: z.string(),
}).strict();

Expand All @@ -102,8 +102,6 @@ export default class UserController {
}
```

The TypeScript compiler processes decorators at compile time and doesn't enforce private or protected access restrictions for members used within decorators in the same class. This behavior allows for more flexible class meta-programming patterns, which decorators aim to facilitate.

## Working with `FormData`

The library doesn't support `FormData` validation, but you can still validate query by setting body validation to `null`.
Expand Down

0 comments on commit 918bd0b

Please sign in to comment.