Commit 54652ee
authored
feat: Add Yup and Zod validator support (#462)
* chore: first pass
* chore: onto something I think
* chore: closer but no cigar
* chore: infer validator
* chore: infer zod
* feat: add validation transformer logic
* chore: fix typings for react adapter
* chore: fix issue with `this` not being defined properly
* chore: mostly update FieldInfo types from Vue
* chore: work on fixing type inferencing
* fix: make ValidatorType optional
* chore: make TName restriction easier to grok
* chore: fix React types
* chore: fix Vue types
* chore: fix typing issues
* chore: fix various linting items
* chore: fix ESlint and validation logic
* chore: fix inferencing from formdata
* chore: fix form inferencing
* chore: fix React TS types to match form validator logic
* chore: fix Vue types
* chore: migrate zod validation to dedicated package
* chore: add first integration test for zod adapter
* chore: enable non-validator types to be passed to validator
* feat: add yup 1.x adapter
* chore: add functionality and tests for form-wide validators
* chore: fix typings of async validation types
* fix: async validation should now run as-expected more often
* chore: add async tests for Yup validator
* chore: rename packages to match naming schema better
* chore: add Zod examples for React and Vue
* chore: add React and Vue Yup support
* chore: fix formatting
* chore: fix CI types
* chore: initial work to drastically improve docs
* docs: improve docs for validation
* docs: add adapter validation docs1 parent b35ecd1 commit 54652ee
File tree
104 files changed
+4158
-1779
lines changed- docs
- guides
- reference
- examples
- react
- simple
- src
- yup
- public
- src
- zod
- public
- src
- vue
- simple
- src
- yup
- src
- zod
- src
- packages
- form-core/src
- tests
- react-form/src
- tests
- vue-form/src
- tests
- yup-form-adapter
- src
- tests
- zod-form-adapter
- src
- tests
- patches
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
104 files changed
+4158
-1779
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
| |||
89 | 93 | | |
90 | 94 | | |
91 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
92 | 104 | | |
93 | 105 | | |
94 | 106 | | |
| |||
133 | 145 | | |
134 | 146 | | |
135 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
136 | 156 | | |
137 | 157 | | |
138 | 158 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
| 8 | + | |
11 | 9 | | |
12 | 10 | | |
13 | 11 | | |
| |||
86 | 84 | | |
87 | 85 | | |
88 | 86 | | |
89 | | - | |
| 87 | + | |
90 | 88 | | |
91 | 89 | | |
92 | 90 | | |
| |||
111 | 109 | | |
112 | 110 | | |
113 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
114 | 137 | | |
115 | 138 | | |
116 | | - | |
| 139 | + | |
117 | 140 | | |
118 | 141 | | |
119 | 142 | | |
| |||
240 | 263 | | |
241 | 264 | | |
242 | 265 | | |
243 | | - | |
| 266 | + | |
244 | 267 | | |
245 | | - | |
246 | | - | |
247 | | - | |
| |||
This file was deleted.
0 commit comments