Replies: 2 comments
-
Hi @Sanideth, that is definitely strange. Are you able to recreate in StackBlitz? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hello, @mrlubos , thanks for answering. Unfortunately no, have lots of restrictions, which I can't avoid or is really hard to. Maybe I can share some files here? I can share some generated files or portions of it.
look at this post function please, I think this 'responseType' is the culprit, all of the generated functions are like this. and I found the issue exact like this: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
previously used 0.51.something version and it was ok, now using latest versions of axios client and api, and all the responses are stringified objects, so am I missing some configuration?
`export default defineConfig({
client: '@hey-api/client-axios',
input: 'src/api/api.json',
output: 'src/api/DTO',
plugins: [
'@tanstack/react-query',
{
name: '@hey-api/transformers',
dates: true
},
{
name: '@hey-api/sdk',
methodNameBuilder: (operation) => {
if ('name' in operation && operation.name) {
return operation.name.replace(/v\d+(.\d+)?/gi, '');
}
],
});
`
this is my config file, had to update plugins array (used very old version, where transformers and other stuff weren't implemented yet).
Beta Was this translation helpful? Give feedback.
All reactions