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

Add 'innererror' property bag to CloudError contract #338

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

ilidemi
Copy link

@ilidemi ilidemi commented Jan 3, 2018

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.

Copy link
Contributor

@jianghaolu jianghaolu left a 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;
Copy link
Contributor

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.

Copy link
Author

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.

@ilidemi
Copy link
Author

ilidemi commented Feb 16, 2018

Looks like all of the issues have been addressed. Is there anything else that needs to be changed?

@anuchandy
Copy link
Member

@demyanenko based on the discussion with .net runtime team, our understanding is - shape of innerError is not yet finialized with ARM team. \cc @shahabhijeet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants