Skip to content

Commit

Permalink
feat(docs): add validation page
Browse files Browse the repository at this point in the history
  • Loading branch information
Romakita committed Apr 17, 2024
1 parent 83a99b3 commit ed5054d
Show file tree
Hide file tree
Showing 3 changed files with 346 additions and 20 deletions.
20 changes: 11 additions & 9 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ export default defineConfig({
text: "Interceptors",
link: `/docs/interceptors`
},
{
text: "Validation",
link: `/docs/validation`
},
{
text: "Authentication",
link: `/docs/authentication`
Expand Down Expand Up @@ -137,10 +141,7 @@ export default defineConfig({
text: "Templating",
link: `/docs/templating`
},
{
text: "Validation",
link: `/docs/validation`
},

{
text: "Session & Cookies",
link: `/docs/session`
Expand Down Expand Up @@ -288,7 +289,7 @@ export default defineConfig({
]
},
{
test: "Fundamentals",
text: "Fundamentals",
items: [
{
text: "Controllers",
Expand Down Expand Up @@ -318,6 +319,10 @@ export default defineConfig({
text: "Interceptors",
link: `/docs/interceptors`
},
{
text: "Validation",
link: `/docs/validation`
},
{
text: "Authentication",
link: `/docs/authentication`
Expand Down Expand Up @@ -367,10 +372,7 @@ export default defineConfig({
text: "Templating",
link: `/docs/templating`
},
{
text: "Validation",
link: `/docs/validation`
},

{
text: "Session & Cookies",
link: `/docs/session`
Expand Down
3 changes: 2 additions & 1 deletion docs/docs/model.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ import "@tsed/ajv";
@Configuration()
class Server {}
```

Without this package, decorators like @@Email@@ won't have any effect.

See [Validation](/docs/validation) for more information. By default, Ts.ED CLI install `@tsed/ajv` module.
:::

## Example
Expand Down
Loading

0 comments on commit ed5054d

Please sign in to comment.