Skip to content
Compare
Choose a tag to compare
@github-actions github-actions released this 24 Jun 19:50
· 2 commits to main since this release
3a39e0d

Minor Changes

  • #2227 4ea6f24 Thanks @mrlubos! - refactor(plugin): add DefinePlugin utility types

    Updated Plugin API

    Please refer to the custom plugin tutorial for the latest guide.

  • #2227 4ea6f24 Thanks @mrlubos! - feat(sdk): update validator option

    Updated sdk.validator option

    Clients can now validate both request and response data. As a result, passing a boolean or string to validator will control both of these options. To preserve the previous behavior, set validator.request to false and validator.response to your previous configuration.

    export default {
      input: 'https://get.heyapi.dev/hey-api/backend',
      output: 'src/client',
      plugins: [
        // ...other plugins
        {
          name: '@hey-api/sdk',
          validator: {
            request: false,
            response: true,
          },
        },
      ],
    };

Patch Changes