···11----
22-'@hey-api/openapi-ts': minor
33----
44-55-feat(valibot): generate a single schema for requests
66-77-### Single Valibot schema per request
88-99-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.
1010-1111-```ts
1212-const vData = v.object({
1313- body: v.optional(v.object({
1414- foo: v.optional(v.string()),
1515- bar: v.optional(v.union([v.number(), v.null()])),
1616- })),
1717- headers: v.optional(v.never()),
1818- path: v.object({
1919- baz: v.string(),
2020- }),
2121- query: v.optional(v.never()),
2222-});
2323-```
2424-2525-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`.
-5
.changeset/rude-shirts-decide.md
···11----
22-'@hey-api/openapi-ts': patch
33----
44-55-fix(parser): prefer JSON media type
-5
.changeset/six-birds-peel.md
···11----
22-'@hey-api/openapi-ts': patch
33----
44-55-fix(valibot): add `metadata` option to generate additional metadata for documentation, code generation, AI structured outputs, form validation, and other purposes
+34
packages/openapi-ts/CHANGELOG.md
···11# @hey-api/openapi-ts
2233+## 0.76.0
44+55+### Minor Changes
66+77+- [#2226](https://github.com/hey-api/openapi-ts/pull/2226) [`1c66d88`](https://github.com/hey-api/openapi-ts/commit/1c66d8866fa25dc9cf978ef94eab3bf8ca64d9f3) Thanks [@mrlubos](https://github.com/mrlubos)! - feat(valibot): generate a single schema for requests
88+99+ ### Single Valibot schema per request
1010+1111+ 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.
1212+1313+ ```ts
1414+ const vData = v.object({
1515+ body: v.optional(
1616+ v.object({
1717+ foo: v.optional(v.string()),
1818+ bar: v.optional(v.union([v.number(), v.null()])),
1919+ }),
2020+ ),
2121+ headers: v.optional(v.never()),
2222+ path: v.object({
2323+ baz: v.string(),
2424+ }),
2525+ query: v.optional(v.never()),
2626+ });
2727+ ```
2828+2929+ 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`.
3030+3131+### Patch Changes
3232+3333+- [#2221](https://github.com/hey-api/openapi-ts/pull/2221) [`e335e1e`](https://github.com/hey-api/openapi-ts/commit/e335e1ea31256b3b284b7ef968d566c1315096b3) Thanks [@mrlubos](https://github.com/mrlubos)! - fix(parser): prefer JSON media type
3434+3535+- [#2226](https://github.com/hey-api/openapi-ts/pull/2226) [`1c66d88`](https://github.com/hey-api/openapi-ts/commit/1c66d8866fa25dc9cf978ef94eab3bf8ca64d9f3) Thanks [@mrlubos](https://github.com/mrlubos)! - fix(valibot): add `metadata` option to generate additional metadata for documentation, code generation, AI structured outputs, form validation, and other purposes
3636+337## 0.75.0
438539### Minor Changes
+1-1
packages/openapi-ts/package.json
···11{
22 "name": "@hey-api/openapi-ts",
33- "version": "0.75.0",
33+ "version": "0.76.0",
44 "description": "🚀 The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more.",
55 "homepage": "https://heyapi.dev/",
66 "repository": {