feat(loader): support validate with standard schema#237
feat(loader): support validate with standard schema#237
validate with standard schema#237Conversation
Signed-off-by: ysknsid25 <kengo071225@gmail.com>
validate with standard schema
Signed-off-by: ysknsid25 <kengo071225@gmail.com>
Signed-off-by: ysknsid25 <kengo071225@gmail.com>
|
@ysknsid25 i will put more time on this PR before releasing in next minor releases. It is a big feature! |
Signed-off-by: ysknsid25 <kengo071225@gmail.com>
define StandardSchema Signed-off-by: ysknsid25 <kengo071225@gmail.com>
define StandardSchema Signed-off-by: ysknsid25 <kengo071225@gmail.com>
define StandardSchema Signed-off-by: ysknsid25 <kengo071225@gmail.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #237 +/- ##
==========================================
+ Coverage 76.92% 77.74% +0.82%
==========================================
Files 7 5 -2
Lines 806 364 -442
Branches 80 147 +67
==========================================
- Hits 620 283 -337
+ Misses 184 67 -117
- Partials 2 14 +12 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
9b10eda to
cfdf5fa
Compare
implement validate and transform Signed-off-by: ysknsid25 <kengo071225@gmail.com>
cfdf5fa to
f1758fa
Compare
|
Hello @pi0 . I have a consultation 🙇 Can you make feature branch for this issue? In this branch, write test for Zod and valibot and marge to new feature branch. remaning test code will be written another each branch. How about? 👀 |
|
Hi dear @ysknsid25 i have updated changes little bit also simplified tests (to add again), fortunatly, since standard schema is unified, we only need to test against one library not all. TODO:
|
add infer return type & error format Signed-off-by: ysknsid25 <kengo071225@gmail.com>
|
Hi dear @pi0 . Thank you for your helping :) I changed code like below. 1. Return type inference from schema (
|
attempts to resolve #228