Packages

@hey-api/openapi-ts

0.99.0 · 22 Jun 2026MIT8.3M / weekRepositoryHomepagenpmAtom feed

Your version

0.76.0

22 Jun 2025Where it was published

0.99.0 is the newest release of 0.76.x.

In short

1 new2 fixed

Security

1 advisory affects 0.76.0; 0.97.3 fixes them

Release note

Minor Changes

  • 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.

```ts
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`](https://valibot.dev/api/object/) API. For example, we can get the request body schema with `vData.entries.body`.

Patch Changes

  • parser: Prefer JSON media type

  • valibot: Add metadata option to generate additional metadata for documentation, code generation, AI structured outputs, form validation, and other purposes

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.