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

latest releases: @hey-api/nuxt@0.2.1, @hey-api/openapi-ts@0.82.1
5 days ago

Minor Changes

  • #2505 97c57f6 Thanks @SebastiaanWouters! - feat(parser): add Hooks API

    Added Hooks API

    This release adds the Hooks API, giving you granular control over which operations generate queries and mutations. As a result, we tightened the previous behavior and POST operations no longer generate queries by default. To preserve the old behavior, add a custom matcher.

    export default {
      input: 'hey-api/backend', // sign up at app.heyapi.dev
      output: 'src/client',
      parser: {
        hooks: {
          operations: {
            isQuery: (op) => (op.method === 'post' ? true : undefined),
          },
        },
      },
    };

Patch Changes

Don't miss a new openapi-ts release

NewReleases is sending notifications on new releases.