|
1 | 1 | # @hey-api/openapi-ts
|
2 | 2 |
|
| 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 | + |
3 | 50 | ## 0.77.0
|
4 | 51 |
|
5 | 52 | ### Minor Changes
|
|
0 commit comments