Skip to content

[Hub Generated] Review request for Microsoft.Authorization to add version stable/2020-09-01 #11961

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

Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,11 @@
"definitions": {
"CloudError": {
"x-ms-external": true,
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse",
"properties": {
"error": {
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
}
},
"description": "An error response from a policy operation."
},
"PolicyAssignmentProperties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,11 @@
"definitions": {
"CloudError": {
"x-ms-external": true,
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse",
"properties": {
"error": {
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
}
},
"description": "An error response from a policy operation."
},
"PolicyDefinitionProperties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,11 @@
"definitions": {
"CloudError": {
"x-ms-external": true,
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse",
"properties": {
"error": {
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
}
},
"description": "An error response from a policy operation."
},
"PolicySetDefinitionProperties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,11 @@
"definitions": {
"CloudError": {
"x-ms-external": true,
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse",
"properties": {
Copy link
Contributor

Choose a reason for hiding this comment

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

The original is right, why did you put the $ref into an "error" object

Copy link
Contributor Author

@feruilob feruilob Dec 7, 2020

Choose a reason for hiding this comment

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

Because of this comment: #10986 (comment)

I was told it had to be like this example

@colawwj @raych1 could you please clarify which version is the correct one?

Copy link
Member

Choose a reason for hiding this comment

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

it is error the property that should refer to "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" not the CloudError itself.

Copy link
Member

Choose a reason for hiding this comment

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

@feruilob , please change the $ref to ../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse as this file.
@colawwj , can you please investigate what's the purpose of x-ms-external extension and what's the impact of removing it? Thanks.

Copy link
Contributor Author

@feruilob feruilob Dec 9, 2020

Choose a reason for hiding this comment

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

@raych1 done. I also removed a suppression in the README that I had done, but the lintdiff is still failing. Any ideas on why this may be?

Copy link
Member

Choose a reason for hiding this comment

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

@colawwj , do you confirm if your suggestion is the only approach found so far for the fix?

Copy link
Contributor

@colawwj colawwj Dec 14, 2020

Choose a reason for hiding this comment

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

@raych1
We have test the approach like $ref to ../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse,but it still reports an error the same as before.
Maybe there are other solutions,but we know that the above method only.
Cc : @qiaozha

Copy link
Member

Choose a reason for hiding this comment

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

@feruilob , could you take @colawwj's advice for the fix?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Alright. Doing this for other files in Microsoft.Authorization/stable/2020-09-01 and 2020-03-01 also

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 confirming: it's v2 not v1, right? ../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse

"error": {
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
}
},
"description": "An error response from a policy operation."
},
"DataManifestCustomResourceFunctionDefinition": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,11 @@
"definitions": {
"CloudError": {
"x-ms-external": true,
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse",
"properties": {
"error": {
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
}
},
"description": "An error response from a policy operation."
},
"PolicyAssignmentProperties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,11 @@
"definitions": {
"CloudError": {
"x-ms-external": true,
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse",
"properties": {
"error": {
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
}
},
"description": "An error response from a policy operation."
},
"PolicyDefinitionProperties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,11 @@
"definitions": {
"CloudError": {
"x-ms-external": true,
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse",
"properties": {
"error": {
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
}
},
"description": "An error response from a policy operation."
},
"PolicySetDefinitionProperties": {
Expand Down