generated from stijnvanhulle/template
-
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Zod fixes for 770, 768 and 767 (#771)
* fix: zod with min/max * fix: uri fix Zod * fix: zod correct use of required * chore: add test cases for recursive
- Loading branch information
1 parent
d308d1c
commit 6165dda
Showing
25 changed files
with
431 additions
and
322 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@kubb/swagger-zod": patch | ||
--- | ||
|
||
Optional properties with type: array allow it's values to be undefined in zod shape |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@kubb/swagger-zod": patch | ||
--- | ||
|
||
uri should not generate an URL for Zod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@kubb/swagger-zod": patch | ||
--- | ||
|
||
min/max with schema.type == string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,10 +22,10 @@ | |
"@vercel/analytics": "^1.1.1", | ||
"sitemap": "^7.1.1", | ||
"vitepress": "^1.0.0-rc.36", | ||
"vue": "^3.4.8" | ||
"vue": "^3.4.13" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^20.10.8" | ||
"@types/node": "^20.11.0" | ||
}, | ||
"packageManager": "[email protected]", | ||
"engines": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,19 +60,19 @@ | |
"@changesets/cli": "^2.27.1", | ||
"@kubb/eslint-config": "workspace:*", | ||
"@kubb/ts-config": "workspace:*", | ||
"@types/node": "^20.10.8", | ||
"@vitest/coverage-v8": "^1.1.3", | ||
"@vitest/ui": "^1.1.3", | ||
"@types/node": "^20.11.0", | ||
"@vitest/coverage-v8": "^1.2.0", | ||
"@vitest/ui": "^1.2.0", | ||
"bun-types": "^1.0.22", | ||
"dprint": "^0.45.0", | ||
"prettier": "^3.1.1", | ||
"prettier": "^3.2.2", | ||
"prettier-eslint": "^16.2.0", | ||
"rimraf": "^5.0.5", | ||
"ts-node": "^10.9.2", | ||
"turbo": "^1.11.3", | ||
"typescript": "^5.3.3", | ||
"vite-tsconfig-paths": "^4.2.3", | ||
"vitest": "^1.1.3" | ||
"vitest": "^1.2.0" | ||
}, | ||
"namespace": "@kubb", | ||
"packageManager": "[email protected]", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -113,6 +113,8 @@ components: | |
type: string | ||
tag: | ||
type: string | ||
maxLength: 100 | ||
minLength: 5 | ||
|
||
OptionalPet: | ||
type: object | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
openapi: 3.0.1 | ||
info: | ||
title: Example Schema | ||
servers: | ||
- url: http://localhost/ | ||
paths: | ||
"/example": | ||
get: | ||
responses: | ||
'200': | ||
description: Ok | ||
content: | ||
application/json: | ||
schema: | ||
"$ref": "#/components/schemas/Example" | ||
components: | ||
schemas: | ||
Example: | ||
type: object | ||
required: ['name', 'children'] | ||
properties: | ||
name: | ||
type: string | ||
children: | ||
type: array | ||
items: | ||
$ref: "#/components/schemas/Example" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
6165dda
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.
Successfully deployed to the following URLs:
kubb – ./
kubb-kubb.vercel.app
www.kubb.dev
kubb.dev
kubb-git-main-kubb.vercel.app