Open dteske25 opened 1 month ago
We have the same issue with 7.2.0.
This is generated:
import {
ChangeType
} from './schemas'
This is the error:
TS2724: './ schemas' has no exported member named ChangeType. Did you mean ChangeTypeDto
This is our a part of our override:
override: {
components: {
schemas: {
suffix: 'Dto',
},
},
},
Any help looking through the MSW code where the issue is and providing a PR would be great!
same issue happens in 7.3.0, it seems that MSW generator doesn't respect override.components.schemas
What are the steps to reproduce this issue?
I was able to get a minimal repro stood up: https://stackblitz.com/edit/vitejs-vite-xqak8w?file=src%2Fhandlers%2Fexample.ts&view=editor
What happens?
It looks like for some reason the fake type is being generated as an array of array of enums instead of just the array of enums that it should be.
What were you expecting to happen?
…
Any logs, error output, etc?
Here's the typescript error that's also visible in the IDE
Any other comments?
…
What versions are you using?