chore(deps): update dependency @asteasolutions/zod-to-openapi to v8#450
Open
renovate[bot] wants to merge 1 commit intomainfrom
Open
chore(deps): update dependency @asteasolutions/zod-to-openapi to v8#450renovate[bot] wants to merge 1 commit intomainfrom
renovate[bot] wants to merge 1 commit intomainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
fbbebe8 to
576913f
Compare
|
576913f to
d340ace
Compare
d340ace to
d5c5ebb
Compare
d5c5ebb to
02568f9
Compare
02568f9 to
2cef267
Compare
2cef267 to
0943775
Compare
0943775 to
e354eb6
Compare
e354eb6 to
7cabaaf
Compare
7cabaaf to
8873cc5
Compare
8873cc5 to
df65e31
Compare
df65e31 to
8007ffa
Compare
8007ffa to
78bf86c
Compare
78bf86c to
8ef3db5
Compare
8ef3db5 to
00ee53c
Compare
00ee53c to
cdc5e14
Compare
cdc5e14 to
a010106
Compare
a010106 to
e4c7b98
Compare
e4c7b98 to
a19466e
Compare
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



This PR contains the following updates:
^4.7.0→^8.4.3Release Notes
asteasolutions/zod-to-openapi (@asteasolutions/zod-to-openapi)
v8.4.3Compare Source
What's Changed
Full Changelog: asteasolutions/zod-to-openapi@v8.4.2...v8.4.3
v8.4.2Compare Source
What's Changed
Full Changelog: asteasolutions/zod-to-openapi@v8.4.1...v8.4.2
v8.4.1Compare Source
What's Changed
Full Changelog: asteasolutions/zod-to-openapi@v8.4.0...v8.4.1
v8.4.0Compare Source
What's Changed
isAnyZodTypewith null/undefined #343Full Changelog: asteasolutions/zod-to-openapi@v8.3.3...v8.4.0
v8.3.3Compare Source
What's Changed
Full Changelog: asteasolutions/zod-to-openapi@v8.3.2...v8.3.3
v8.3.2Compare Source
Testing Trusted Publishers setup again
Full Changelog: asteasolutions/zod-to-openapi@v8.3.1...v8.3.2
v8.3.1Compare Source
Testing the Trusted Publihsers setup
Full Changelog: asteasolutions/zod-to-openapi@v8.3.0...v8.3.1
v8.3.0Compare Source
What's Changed
Full Changelog: asteasolutions/zod-to-openapi@v8.2.0...v8.3.0
v8.2.0Compare Source
What's Changed
Full Changelog: asteasolutions/zod-to-openapi@v8.1.0...v8.2.0
v8.1.0Compare Source
What's Changed
Full Changelog: asteasolutions/zod-to-openapi@v8.0.0...v8.1.0
v8.0.0Compare Source
Added Zod v4 support 🚀
Support for properties from .meta
With zod's new option for generating JSON schemas and maintaining registries we've added a pretty much seamless support for all metadata information coming from
.metacalls as if that was metadata passed into.openapi.So the following 2 schemas produce exactly the same results:
Removing extendZodWithOpenApi
This also means that unless you are using some of our more complicated scenarios you could even generate a schema without using
extendZodWithOpenApiin your codebase and only rely on.metato provide additional metadata information and schema names (using theidproperty).Where would you still need to use
extendZodWithOpenApiand.openapianyOfi.e:the result would be:
What's Changed as well
getRefIdfunction (fixes #319)Full Changelog: asteasolutions/zod-to-openapi@v7.3.4...v8.0.0
v7.3.4Compare Source
What's Changed
Full Changelog: asteasolutions/zod-to-openapi@v7.3.3...v7.3.4
v7.3.3Compare Source
Full Changelog: asteasolutions/zod-to-openapi@v7.3.2...v7.3.3
Updated README.md
Updated README.md to point users to the 8.0.0-beta version for compatibility with zod v4
v7.3.2: - blankCompare Source
No changes, but need this to be the latest version since we accidentally published a
7.3.1-beta-zod-v4-2.Making this release so that people don't end up using the accidentally published one.
v7.3.0Compare Source
What's Changed
Full Changelog: asteasolutions/zod-to-openapi@v7.2.0...v7.3.0
v7.2.0Compare Source
What's Changed
.emoji().cuid().cuid2().ulid().ip()Full Changelog: asteasolutions/zod-to-openapi@v7.1.2...v7.2.0
v7.1.2Compare Source
What's Changed
Full Changelog: asteasolutions/zod-to-openapi@v7.1.1...v7.1.2
v7.1.1Compare Source
What's Changed
Full Changelog: asteasolutions/zod-to-openapi@v7.1.0...v7.1.1
v7.1.0Compare Source
What's Changed
Full Changelog: asteasolutions/zod-to-openapi@v7.0.0...v7.1.0
v7.0.0Compare Source
What's Changed
.refine()and.transformon ZodObjects in request query/params/headers/cookies (#198)BREAKING CHANGES⚠️
❗ None of the changes that we've made are breaking in terms of code integration but their behavior (result) is changed:
Handle zod tuples with prefixItems for OpenAPI v3.1.0 (#221 )
As of OpenAPI v3.1.0 there is a better representation of tuples - ordered items with the use of the
prefixItemskeyword. See more hereBigInt is now transformed as type string
A BigInt can represent a number with a arbitrary size and that also means numbers that do not fall in the
int64format. As such for a library based on the JS world it is safer to represent az.bigint()instance as a string containing only digits. In a real life scenario aBigIntinstance can only be created from whatever was passed through HTTPS - and that can be both number and string as a basis.Along with that the support for the minimum and maximum values have been removed.
Full Changelog: asteasolutions/zod-to-openapi@v6.4.0...v7.0.0
v6.4.0Compare Source
What's Changed
Full Changelog: asteasolutions/zod-to-openapi@v6.3.1...v6.4.0
v6.3.1Compare Source
What's Changed
Full Changelog: asteasolutions/zod-to-openapi@v6.3.0...v6.3.1
v6.3.0Compare Source
What's Changed
Full Changelog: asteasolutions/zod-to-openapi@v6.2.0...v6.3.0
v6.2.0Compare Source
What's Changed
z.bigint.describefor paramters not putting the description in the correct placeFull Changelog: asteasolutions/zod-to-openapi@v6.1.0...v6.2.0
v6.1.0Compare Source
What's Changed
ZodReadonlyFull Changelog: asteasolutions/zod-to-openapi@v6.0.0...v6.1.0
v6.0.0Compare Source
What's Changed
openapi3-tsexports since they break some applications but were never exported as a feature but rather for convenience. If they are needed one can simply add a dependency onopenapi3-tsitslefFull Changelog: asteasolutions/zod-to-openapi@v5.5.0...v6.0.0
v5.5.0Compare Source
What's Changed
config.parameterswith the generated ones fromconfig.requestFull Changelog: asteasolutions/zod-to-openapi@v5.4.0...v5.5.0
v5.4.0Compare Source
What's Changed
Full Changelog: asteasolutions/zod-to-openapi@v5.3.1...v5.4.0
v5.3.1Compare Source
What's Changed
Full Changelog: asteasolutions/zod-to-openapi@v5.3.0...v5.3.1
v5.3.0Compare Source
What's Changed
.catchall(#154 )Full Changelog: asteasolutions/zod-to-openapi@v5.2.0...v5.3.0
v5.2.0Compare Source
What's Changed
OpenApiGeneratorV3/OpenApiGeneratorV31notOpenAPIGeneratorV3andOpenAPIGeneratorV318Full Changelog: asteasolutions/zod-to-openapi@v5.1.0...v5.2.0
v5.1.0Compare Source
What's Changed
.deepPartial(fixes #132)preprocess(#143).transformand.refine(fixes #79)z.any()Full Changelog: asteasolutions/zod-to-openapi@v5.0.0...v5.1.0
v5.0.0Compare Source
zod-to-openapi v5.0.0 is finally here 🎉
What's Changed
.openapimethodFull Changelog: asteasolutions/zod-to-openapi@v4.8.0...v5.0.0
Migrating to v5.0.0
How to use the separated generators
Lets say you had something like this:
When migrating to v5.0.0 it would start to look like this:
And similarly if you were using the generator as:
the respective change would be to start using:
Taking advantage of the automatic registration and how to use it
Registering schemas has never been easier.
Let's say you had an example registered schema like
This is still valid. However an alternative approach to writing this can now be used:
Notice how there is no registry involved. And that is the idea. Thanks to this approach we can do the following:
This would produce the following result:
{ "components": { "schemas": { "Key": { "type": "string", "description": "Some string" }, "User": { "type": "object", "properties": { "name": { "type": "string" }, "age": { "type": "number" } }, "required": ["name", "age"] }, "UserEntry": { "type": "object", "properties": { "key": { "$ref": "#/components/schemas/Key" }, "person": { "$ref": "#/components/schemas/User" } }, "required": ["key", "person"] } } } }The key part here is that in the example above we've only passed the
entrySchema. However@asteasolutions/zod-to-openapiwould generate and reference any schema that has an identifier (the first parameter of.openapi) - in the example above -KeyandUser.Going one step further this would allow any user to not pass in zod schemas to the generator at all. You can only pass route definitions and
@asteasolutions/zod-to-openapiwould take care of all the referenced schemas on it's own:For example, using the example above but changing the generator constructor we can have:
This would produce the exact same result for
component/schemasand the path would just look like thisConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.