github hey-api/openapi-ts @hey-api/openapi-ts@0.66.0

latest releases: @hey-api/openapi-ts@0.83.1, @hey-api/codegen-core@0.1.0, @hey-api/openapi-ts@0.83.0...
5 months ago

Minor Changes

  • #1896 8840ed7 Thanks @mrlubos! - feat: support read-only and write-only properties

    Read-only and write-only fields

    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.

    export default {
      input: 'https://get.heyapi.dev/hey-api/backend',
      output: 'src/client',
      plugins: [
        // ...other plugins
        {
          name: '@hey-api/typescript',
          readOnlyWriteOnlyBehavior: 'off', // [!code ++]
        },
      ],
    };

Don't miss a new openapi-ts release

NewReleases is sending notifications on new releases.