-
Notifications
You must be signed in to change notification settings - Fork 59
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
Add 'innererror' property bag to CloudError contract #338
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for contributing! Please take a look at the comment.
/** | ||
* The inner error. | ||
*/ | ||
private ObjectNode innererror; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the format of the innerError? Will it be a HashMap? (judging on your test)
Also please camel case the variables and methods.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will be an arbitrary JSON struct with an object at the top level. Inside could be multiple levels of nesting, arrays and numbers.
Looks like all of the issues have been addressed. Is there anything else that needs to be changed? |
@demyanenko based on the discussion with .net runtime team, our understanding is - shape of innerError is not yet finialized with ARM team. \cc @shahabhijeet |
The data contract for ARM errors includes
innererror
field which is a property bag with unspecified contents as per OData 4.0 spec. This field wasn't used by ARM up until now, but recently there was a change related to Azure Policy that makes heavy use of this property bag. It is already deployed in all regions and consumed by Azure Portal, so now would be a good time to support it in SDKs as well.The new errors are generated by the ARM Frontdoor itself, so CloudError seems like the most appropriate contract to include it.