Packages

@hey-api/openapi-ts

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

Your version

0.74.0

19 Jun 2025Where it was published

0.99.0 is the newest release of 0.74.x.

In short

1 new2 fixed

Security

1 advisory affects 0.74.0; 0.97.3 fixes them

Release note

Minor Changes

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

```ts
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`](https://zod.dev/api?id=shape) API. For example, we can get the request body schema with `zData.shape.body`.

Patch Changes

  • valibot: Use isoTimestamp instead of isoDateTime for date-time format

  • parser: Do not mark schemas as duplicate if they have different format

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.