Skip to content

Commit dedfeef

Browse files
authored
Merge pull request #2272 from hey-api/changeset-release/main
Version Packages
2 parents be30481 + 83862c0 commit dedfeef

File tree

4 files changed

+48
-48
lines changed

4 files changed

+48
-48
lines changed

.changeset/dull-experts-retire.md

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

.changeset/sour-dancers-draw.md

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

packages/openapi-ts/CHANGELOG.md

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

3+
## 0.78.0
4+
5+
### Minor Changes
6+
7+
- [#2246](https://github.com/hey-api/openapi-ts/pull/2246) [`a11a8c5`](https://github.com/hey-api/openapi-ts/commit/a11a8c5d0e3fd3f8564e4b0873babdee0dfea2d3) Thanks [@mrlubos](https://github.com/mrlubos)! - feat(config): add `parser` options
8+
9+
### Added `parser` options
10+
11+
Previously, `@hey-api/typescript` would generate correct types, but the validator plugins would have to re-implement the same logic or generate schemas that didn't match the generated types.
12+
13+
Since neither option was ideal, this release adds a dedicated place for `parser` options. Parser is responsible for preparing the input so plugins can generate more accurate output with less effort.
14+
15+
You can learn more about configuring parser on the [Parser](https://heyapi.dev/openapi-ts/configuration/parser) page.
16+
17+
### Moved `input` options
18+
19+
The following options were moved to the new `parser` group.
20+
21+
- `input.filters` moved to `parser.filters`
22+
- `input.pagination` moved to `parser.pagination`
23+
- `input.patch` moved to `parser.patch`
24+
- `input.validate_EXPERIMENTAL` moved to `parser.validate_EXPERIMENTAL`
25+
26+
### Updated `typescript` options
27+
28+
The following options were renamed.
29+
30+
- `enumsCase` moved to `enums.case`
31+
- `enumsConstantsIgnoreNull` moved to `enums.constantsIgnoreNull`
32+
33+
### Moved `typescript` options
34+
35+
The following options were moved to the new `parser` group.
36+
37+
- `exportInlineEnums` moved to `parser.transforms.enums`
38+
- `readOnlyWriteOnlyBehavior` moved to `parser.transforms.readWrite.enabled`
39+
- `readableNameBuilder` moved to `parser.transforms.readWrite.responses.name`
40+
- `writableNameBuilder` moved to `parser.transforms.readWrite.requests.name`
41+
42+
### Updated `readWrite.responses` name
43+
44+
Additionally, the naming pattern for response schemas has changed from `{name}Readable` to `{name}`. This is to prevent your code from breaking by default when using a schema that gets updated with a write-only field.
45+
46+
### Patch Changes
47+
48+
- [#2246](https://github.com/hey-api/openapi-ts/pull/2246) [`d901bd5`](https://github.com/hey-api/openapi-ts/commit/d901bd55e17c9a06abfa5af4d9ac62a06dd6c82e) Thanks [@mrlubos](https://github.com/mrlubos)! - fix(config): add `operations` option to `parser.patch`
49+
350
## 0.77.0
451

552
### 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.77.0",
3+
"version": "0.78.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)