Skip to content

Commit 24da426

Browse files
committed
validate on commit
1 parent 0d06ad6 commit 24da426

File tree

5 files changed

+1469
-21
lines changed

5 files changed

+1469
-21
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
21
Get and validate [AWS CDK](https://aws.amazon.com/cdk/) context against [Zod](https://zod.dev/) schema. Get typed, validated context as a result, or error will be thrown.
32

43
```typescript
54
// {foo: string; bar?: string; baz: number}
6-
const {foo, bar, baz} = getValidatedContext(app.node, {
5+
const { foo, bar, baz } = getValidatedContext(app.node, {
76
foo: z.string(),
87
bar: z.string().optional(),
98
baz: z.coerce.number(),

0 commit comments

Comments
 (0)