·
2 commits
to main
since this release
Minor Changes
-
#2227
4ea6f24
Thanks @mrlubos! - refactor(plugin): addDefinePlugin
utility typesUpdated Plugin API
Please refer to the custom plugin tutorial for the latest guide.
-
#2227
4ea6f24
Thanks @mrlubos! - feat(sdk): updatevalidator
optionUpdated
sdk.validator
optionClients 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, setvalidator.request
tofalse
andvalidator.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, }, }, ], };