-
Hi Team/ @mrlubos first of all thanks for the great library. While upgrading to the latest version, I see that the enums are always added under namespace. This was not the case before. Irrespective of what i change in the configuration, the output is the same. Is there a possibility to keep code generation similar to what it was before? import { defineConfig } from '@hey-api/openapi-ts';
export default defineConfig({
input: 'src/xpanse-api/api.json',
output: {
format: 'prettier',
path: 'src/xpanse-api/generated',
},
parser: {
transforms: {
enums: 'root', # tried with inline too.
},
},
plugins: [
'@hey-api/sdk',
{
name: '@hey-api/typescript',
enums: true, # tried with typescript to
},
'legacy/fetch',
],
}); ![]() Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hey @swaroopar, I think that's because of the legacy Fetch client. I don't plan to maintain feature parity with the latest version so I'd suggest staying at an older version if you're not able to migrate to the Fetch client yet |
Beta Was this translation helpful? Give feedback.
-
@mrlubos thank you for the quick response. |
Beta Was this translation helpful? Give feedback.
-
@mrlubos yes this worked. Thank you again for all the great work. |
Beta Was this translation helpful? Give feedback.
Hey @swaroopar, I think that's because of the legacy Fetch client. I don't plan to maintain feature parity with the latest version so I'd suggest staying at an older version if you're not able to migrate to the Fetch client yet