-
-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong typing for object #85
Comments
@meabed can you be more specific? Is this related to the openapi-client-axios-typegen package? |
Thanks @anttiviljami, yes it's the typegen package. |
Can you clarify? What exactly changed? What is the desired/expected behaviour? |
Sure,
it generate typing
After the last update, it generates types as:
Which is wrong because key could be number / undefined / null / string. I think it might be an issue with dtsgenerator? Thanks! |
Hey there, you should report this error on https://github.com/horiuchi/dtsgenerator (used by : https://github.com/anttiviljami/dtsgenerator) |
This is an upstream issue with dtsgenerator but I’ll leave this open for the time being to track |
did someone report this already? / any updates? in my case this happens, when defining: oneOf: [{ type: 'string' }, { type: 'number' }] |
The typing for "object" is wrong in latest release.
The key could be string | number or anything.
This has been changed in latest release.
The text was updated successfully, but these errors were encountered: