-
Notifications
You must be signed in to change notification settings - Fork 5.3k
[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
Merged
raych1
merged 11 commits into
Azure:master
from
feruilob:dev-resources-Microsoft.Authorization-2020-09-01-dec-edit-2
Jan 6, 2021
Merged
Changes from 8 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
d14cbff
Ensuring dataPolicyManifests follow the rules of autorest/docs/extens…
feruilob 5a86d51
Following the rulesof autorest/docs/extensions/readme.md#x-ms-externa…
feruilob ce73bf3
Adds suppression to readme
feruilob 5f43df9
Fix linter error missing description
feruilob d0d4e71
Merge branch 'dev-resources-Microsoft.Authorization-2020-09-01-dec-ed…
feruilob c1afdbc
Rolling back the version to fix swagger linter errors
feruilob e8c70ee
Fixing linter errors for version 2020-03-01 as well
feruilob 08cdace
Remove suppresion because it is no longer needed
feruilob 5273bae
Removing CloudeError definition and adding the reference directly
feruilob 49b2e92
Updating error response
feruilob 2915886
Updating to v2 of error response
feruilob File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
The original is right, why did you put the $ref into an "error" object
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.
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?
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 is error the property that should refer to "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" not the CloudError itself.
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.
@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.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.
@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?
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.
@colawwj , do you confirm if your suggestion is the only approach found so far for the fix?
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.
@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
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.
@feruilob , could you take @colawwj's advice for the fix?
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.
Alright. Doing this for other files in Microsoft.Authorization/stable/2020-09-01 and 2020-03-01 also
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.
Just confirming: it's v2 not v1, right? ../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse