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

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Jun 22, 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.76.0

Minor Changes

  • #2226 1c66d88 Thanks @mrlubos! - feat(valibot): generate a single schema for requests

    Single Valibot schema per request

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

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

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

Patch Changes

  • #2221 e335e1e Thanks @mrlubos! - fix(parser): prefer JSON media type

  • #2226 1c66d88 Thanks @mrlubos! - fix(valibot): add metadata option to generate additional metadata for documentation, code generation, AI structured outputs, form validation, and other purposes

@vercel
Copy link

vercel bot commented Jun 22, 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 22, 2025 5:09pm

@bolt-new-by-stackblitz
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 dab58ab to 62dbbc8 Compare June 22, 2025 17:08
@mrlubos mrlubos merged commit acac297 into main Jun 22, 2025
2 checks passed
@mrlubos mrlubos deleted the changeset-release/main branch June 22, 2025 20:59
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.

2 participants