Closed ryanelian closed 5 years ago
We appreciate you filing these issues and we're sorry that you're running into all of the problems. It's not very often that we come across swagger files without definitions/mappers, but we'll fix this as soon as we can.
Sorry for the troubles.
The bugged examples are very simple because I'm trying to mentor junior developers using simple examples before moving to more complex cases with classes and stuffs. (Imagine their surprised faces when the simple example broke but the complex cases aren't)
Thank you for the fix, in advance. 👍
This pull request should fix this problem. I'll comment on this issue again when it is published, but when that happens, please run autorest --reset
and then try to regenerate these SDKs.
https://www.npmjs.com/package/@microsoft.azure/autorest.typescript/v/2.0.597 was just published and set to latest, so you should be able to run the command I mentioned above (autorest --reset
) and regenerate and the problem should be solved.
This is probably related to https://github.com/Azure/autorest.typescript/issues/337 (sorry)
swagger.json
Console Used
Compile Error
The Actual Web API
I suspect this is actually being caused by the mapper file not being generated / imported from fix https://github.com/Azure/autorest.typescript/pull/338