fork of hey-api/openapi-ts because I need some additional things

Merge pull request #1898 from hey-api/changeset-release/main

authored by

Lubos and committed by
GitHub
53c88a6a 12bc2958

+25 -24
-23
.changeset/lemon-spies-hammer.md
··· 1 - --- 2 - '@hey-api/openapi-ts': minor 3 - --- 4 - 5 - feat: support read-only and write-only properties 6 - 7 - ### Read-only and write-only fields 8 - 9 - Starting with v0.66.0, `@hey-api/typescript` will generate separate types for payloads and responses if it detects any read-only or write-only fields. To preserve the previous behavior and generate a single type regardless, set `readOnlyWriteOnlyBehavior` to `off`. 10 - 11 - ```js 12 - export default { 13 - input: 'https://get.heyapi.dev/hey-api/backend', 14 - output: 'src/client', 15 - plugins: [ 16 - // ...other plugins 17 - { 18 - name: '@hey-api/typescript', 19 - readOnlyWriteOnlyBehavior: 'off', // [!code ++] 20 - }, 21 - ], 22 - }; 23 - ```
+24
packages/openapi-ts/CHANGELOG.md
··· 1 1 # @hey-api/openapi-ts 2 2 3 + ## 0.66.0 4 + 5 + ### Minor Changes 6 + 7 + - [#1896](https://github.com/hey-api/openapi-ts/pull/1896) [`8840ed7`](https://github.com/hey-api/openapi-ts/commit/8840ed73df5ee718e803aa6e27b66e0c82ec3651) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: support read-only and write-only properties 8 + 9 + ### Read-only and write-only fields 10 + 11 + Starting with v0.66.0, `@hey-api/typescript` will generate separate types for payloads and responses if it detects any read-only or write-only fields. To preserve the previous behavior and generate a single type regardless, set `readOnlyWriteOnlyBehavior` to `off`. 12 + 13 + ```js 14 + export default { 15 + input: 'https://get.heyapi.dev/hey-api/backend', 16 + output: 'src/client', 17 + plugins: [ 18 + // ...other plugins 19 + { 20 + name: '@hey-api/typescript', 21 + readOnlyWriteOnlyBehavior: 'off', // [!code ++] 22 + }, 23 + ], 24 + }; 25 + ``` 26 + 3 27 ## 0.65.0 4 28 5 29 ### Minor Changes
+1 -1
packages/openapi-ts/package.json
··· 1 1 { 2 2 "name": "@hey-api/openapi-ts", 3 - "version": "0.65.0", 3 + "version": "0.66.0", 4 4 "description": "🚀 The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more.", 5 5 "homepage": "https://heyapi.dev/", 6 6 "repository": {