-
Notifications
You must be signed in to change notification settings - Fork 57
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
Codegen Error in generating iothub track2 #812
Comments
hey @00Kai0, @lmazuel correctly pointed out that your 404 error response is not actually marked as an error response. In cases where you have different sections for different error codes, you need to mark the error definition with an [x-ms-error-response(https://github.com/Azure/autorest/blob/master/docs/extensions/readme.md#x-ms-error-response) (see link for more info), to let autorest know that this is an error we should be returning. So in conclusion, there are 2 errors going on here: one is on our side, and one is on your side. We have a PR out for our side, can you fix your swagger error as well? |
Hi @iscai-msft. Sure, I will. thx ;) |
@00Kai0 we've released a fix with this, version 5.4.3. Ruingn |
Hi @lmazuel , When I generated iothub track2, but I got an error:
I guess that it may be an error in codegen, because it worked after I deleted
200
or404
inresponses
.https://github.com/Azure/azure-rest-api-specs/blob/master/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-03-01/iothub.json#L286
waiting for you answer :)
The text was updated successfully, but these errors were encountered: