这是indexloc提供的服务,不要输入任何密码
Skip to content

Version Packages #2193

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 19, 2025
Merged

Version Packages #2193

merged 1 commit into from
Jun 19, 2025

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jun 17, 2025

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@hey-api/openapi-ts@0.74.0

Minor Changes

  • #2201 ab8cede Thanks @mrlubos! - feat(zod): generate a single schema for requests

    Single Zod schema per request

    Previously, we generated a separate schema for each endpoint parameter and request body. In v0.74.0, a single request schema is generated for the whole endpoint. It may contain a request body, parameters, and headers.

    const zData = z.object({
      body: z
        .object({
          foo: z.string().optional(),
          bar: z.union([z.number(), z.null()]).optional(),
        })
        .optional(),
      headers: z.never().optional(),
      path: z.object({
        baz: z.string(),
      }),
      query: z.never().optional(),
    });

    If you need to access individual fields, you can do so using the .shape API. For example, we can get the request body schema with zData.shape.body.

Patch Changes

  • #2192 7a740ed Thanks @Daschi1! - fix(valibot): use isoTimestamp instead of isoDateTime for date-time format

  • #2201 a889c3c Thanks @mrlubos! - fix(parser): do not mark schemas as duplicate if they have different format

Copy link

vercel bot commented Jun 17, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hey-api-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 19, 2025 3:55pm

Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@github-actions github-actions bot force-pushed the changeset-release/main branch from af8af67 to a13d803 Compare June 19, 2025 15:54
@mrlubos mrlubos merged commit c778f69 into main Jun 19, 2025
2 checks passed
@mrlubos mrlubos deleted the changeset-release/main branch June 19, 2025 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant