Skip to content

Commit

Permalink
docs: re-add zod import in schema library example (#1069)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pascalmh authored Dec 13, 2024
1 parent af3f6b3 commit 939f0cc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/framework/angular/guides/basic-concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export class AppComponent {
}
```

## Validation with Schema Libraries
## Validation with Standard Schema Libraries

In addition to hand-rolled validation options, we also support the [Standard Schema](https://github.com/standard-schema/standard-schema) specification.

Expand Down
4 changes: 3 additions & 1 deletion docs/framework/react/guides/basic-concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ Example:
/>
```

## Validation with Schema Libraries
## Validation with Standard Schema Libraries

In addition to hand-rolled validation options, we also support the [Standard Schema](https://github.com/standard-schema/standard-schema) specification.

Expand All @@ -157,6 +157,8 @@ Supported libraries include:
- [ArkType](https://arktype.io/)

```tsx
import { z } from 'zod'

const userSchema = z.object({
age: z.number().gte(13, 'You must be 13 to make an account'),
})
Expand Down
2 changes: 1 addition & 1 deletion docs/framework/solid/guides/basic-concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ Example:
/>
```

## Validation with Schema Libraries
## Validation with Standard Schema Libraries

In addition to hand-rolled validation options, we also support the [Standard Schema](https://github.com/standard-schema/standard-schema) specification.

Expand Down
2 changes: 1 addition & 1 deletion docs/framework/vue/guides/basic-concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ Example:
</template>
```

## Validation with Schema Libraries
## Validation with Standard Schema Libraries

In addition to hand-rolled validation options, we also support the [Standard Schema](https://github.com/standard-schema/standard-schema) specification.

Expand Down

0 comments on commit 939f0cc

Please sign in to comment.