-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace Runtypes with Zod in starter templates #984
Replace Runtypes with Zod in starter templates #984
Conversation
🦋 Changeset detectedLatest commit: 3425216 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
WEW :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is some seriously good work 🎉 Just a few nitpicks
e0a4ac6
to
6d4d61f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome 👏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution!
Can we also look at enforcing .strict()
where applicable? For example, it may make sense when the API template parses a request, as we don't want clients sending random junk fields that may conflict with future extensions. OTOH the Lambda template should only be concerned with extracting the subset of the external job scorer response that it needs, so non-strict parsing is suitable there.
fcf49d8
to
e6e2ff5
Compare
The Integration should be b̵r̵o̵k̵e̵n̵ ̵d̵u̵e̵ ̵t̵o̵ ̵t̵h̵e̵ ̵l̵a̵t̵e̵s̵t̵ ̵v̵e̵r̵s̵i̵o̵n̵(̵ |
e6e2ff5
to
ec72199
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is wonderful, thanks Jason!
I'd like us to examine .strict()
in more detail but that can be a separate PR 🙂
Proposed Changes
Closes #983.
High level summary of change
Replace Runtypes with Zod in templates: