Skip to content

Commit fe7db9d

Browse files
Version Packages
1 parent ec7fdbe commit fe7db9d

File tree

5 files changed

+38
-41
lines changed

5 files changed

+38
-41
lines changed

.changeset/clever-jeans-end.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

.changeset/quick-hotels-knock.md

Lines changed: 0 additions & 26 deletions
This file was deleted.

.changeset/real-horses-lay.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/openapi-ts/CHANGELOG.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,42 @@
11
# @hey-api/openapi-ts
22

3+
## 0.77.0
4+
5+
### Minor Changes
6+
7+
- [#2227](https://github.com/hey-api/openapi-ts/pull/2227) [`4ea6f24`](https://github.com/hey-api/openapi-ts/commit/4ea6f24d02d8e8867313073d003f0b573f2054db) Thanks [@mrlubos](https://github.com/mrlubos)! - refactor(plugin): add `DefinePlugin` utility types
8+
9+
### Updated Plugin API
10+
11+
Please refer to the [custom plugin](https://heyapi.dev/openapi-ts/plugins/custom) tutorial for the latest guide.
12+
13+
- [#2227](https://github.com/hey-api/openapi-ts/pull/2227) [`4ea6f24`](https://github.com/hey-api/openapi-ts/commit/4ea6f24d02d8e8867313073d003f0b573f2054db) Thanks [@mrlubos](https://github.com/mrlubos)! - feat(sdk): update `validator` option
14+
15+
### Updated `sdk.validator` option
16+
17+
Clients can now validate both request and response data. As a result, passing a boolean or string to `validator` will control both of these options. To preserve the previous behavior, set `validator.request` to `false` and `validator.response` to your previous configuration.
18+
19+
```js
20+
export default {
21+
input: 'https://get.heyapi.dev/hey-api/backend',
22+
output: 'src/client',
23+
plugins: [
24+
// ...other plugins
25+
{
26+
name: '@hey-api/sdk',
27+
validator: {
28+
request: false,
29+
response: true,
30+
},
31+
},
32+
],
33+
};
34+
```
35+
36+
### Patch Changes
37+
38+
- [#2227](https://github.com/hey-api/openapi-ts/pull/2227) [`4ea6f24`](https://github.com/hey-api/openapi-ts/commit/4ea6f24d02d8e8867313073d003f0b573f2054db) Thanks [@mrlubos](https://github.com/mrlubos)! - fix(client): add requestValidator option
39+
340
## 0.76.0
441

542
### Minor Changes

packages/openapi-ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hey-api/openapi-ts",
3-
"version": "0.76.0",
3+
"version": "0.77.0",
44
"description": "🚀 The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more.",
55
"homepage": "https://heyapi.dev/",
66
"repository": {

0 commit comments

Comments
 (0)