Skip to content
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

[Hub Generated] Review request for Microsoft.Advisor to add version stable/2020-01-01 #12020

Merged
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@
"404": {
"description": "Suppression name is not specified or Suppression Id not found.",
"schema": {
"$ref": "#/definitions/ARMErrorResponseBody"
"$ref": "#/definitions/ARMErrorResponse"
}
}
},
Expand Down Expand Up @@ -603,6 +603,12 @@
"schema": {
"$ref": "#/definitions/SuppressionContract"
}
},
"404": {
"description": "Recommendation to be suppressed is not found.",
"schema": {
"$ref": "#/definitions/ARMErrorResponse"
}
}
},
"deprecated": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@
"ttl": "07:00:00:00"
}
}
},
"404": {
"body": {
"code": "NotFound",
"message": "Recommendation to be suppressed is not found. Subscription Id:{0} Recommendation Id:{1}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is incorrect. Needs to have error as key.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you may need to fix example in other suppression .

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the catch! I've updated both of them.

Copy link
Contributor

@mudit794 mudit794 Dec 9, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason why model and semantic validation is failing?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just realize that should be lowercase for A"rm"ErrorResponse for the model validation it is complaining no response body for CreateSuppression.json and GetSuppressionDetail.json which is weird because we are using ArmErrorResponse it should be "error" and not "body" like your comment has mentioned I will check how others are using it if that is identical with others' cases I will file for exception for false positive case.

}
}
}
}