Commit f7e374f
authored
feat!: support both zod v3 and zod v4 (#366)
#310
- reworks the `ZodBuilder` -> `ZodV3Builder`, and uses the `/v3`
sub-path import
- introduces a `ZodV4Builder`
efforts have been made to retain support for zod v3 at this stage, and
make upgrading seamless, aside from updating the CLI parameter to
indicate v3 vs v4. An alpha release will be published and used for
regression testing against private projects before release.
BREAKING CHANGE: default schema builder now `zod-v4`, pass `zod-v3` to
continue using `zod@^3`1 parent 20c7664 commit f7e374f
94 files changed
Lines changed: 10780 additions & 9843 deletions
File tree
- .github/workflows
- e2e
- scripts
- src
- generated
- client
- axios
- fetch
- server
- express
- routes
- koa
- routes
- integration-tests
- typescript-express
- src/generated
- api.github.com.yaml
- azure-core-data-plane-service.tsp
- azure-resource-manager.tsp
- okta.idp.yaml
- okta.oauth.yaml
- petstore-expanded.yaml
- stripe.yaml
- todo-lists.yaml
- typescript-koa
- src/generated
- api.github.com.yaml
- azure-core-data-plane-service.tsp
- azure-resource-manager.tsp
- okta.idp.yaml
- okta.oauth.yaml
- petstore-expanded.yaml
- stripe.yaml
- todo-lists.yaml
- packages
- documentation
- src
- app
- getting-started/quick-start
- guides
- client-templates
- typescript-angular
- typescript-axios
- typescript-fetch
- concepts/extract-inline-schemas
- server-templates
- typescript-express
- typescript-koa
- overview/about
- reference/cli-options
- lib
- playground
- openapi-code-generator
- src
- core/schemas
- typescript
- client/typescript-fetch
- common/schema-builders
- server
- typescript-express
- typescript-koa
- typescript-express-runtime
- src
- typescript-fetch-runtime
- src
- typescript-koa-runtime
- src
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
| 126 | + | |
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
182 | 185 | | |
183 | 186 | | |
184 | 187 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments