Skip to content
Open

V2 #9

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ node_modules
dist
*/dist/
*/tsconfig.tsbuildinfo
**/*/tsconfig.tsbuildinfo
**/*/tsconfig.tsbuildinfo
coverage

# Turborepo
.turbo
9 changes: 0 additions & 9 deletions .mocharc.js

This file was deleted.

23 changes: 0 additions & 23 deletions Makefile

This file was deleted.

2 changes: 1 addition & 1 deletion docs/docs/server/middlewares.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ To solve this, Cuple introduces a wrapper called **link**, and you can connect l
```ts
const authLink = builder
.headersSchema(
z.object({
z.looseObject({
authorization: z.string(),
})
)
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/server/schema_validation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Successfully parsed result will be added to `data.headers`.

```ts
builder
.headersSchema(z.object({ authorization: z.string() }))
.headersSchema(z.looseObject({ authorization: z.string() }))
.get(async ({ data }) => {

data.headers.authorization // this has a string value
Expand Down
Loading