Skip to content

Update service map swagger spec to latest and fix validation errors#2231

Merged
lmazuel merged 8 commits intoAzure:masterfrom
JinFengMS:master
Feb 14, 2018
Merged

Update service map swagger spec to latest and fix validation errors#2231
lmazuel merged 8 commits intoAzure:masterfrom
JinFengMS:master

Conversation

@JinFengMS
Copy link
Copy Markdown
Contributor

@JinFengMS JinFengMS commented Jan 9, 2018

This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.

PR information

  • The title of the PR is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
  • Except for special cases involving multiple contributors, the PR is started from a fork of the main repository, not a branch.
  • If applicable, the PR references the bug/issue that it fixes.
  • Swagger files are correctly named (e.g. the api-version in the path should match the api-version in the spec).

Quality of Swagger

@msftclas
Copy link
Copy Markdown

msftclas commented Jan 9, 2018

CLA assistant check
All CLA requirements met.

"$ref": "#/parameters/MachineNameParameter"
},
{
"name": "startTime",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This does not correspond to the title of the PR, since this is not just fixing issues, but pushing new stuff. Could you rephrase your PR title if the scope change and this one is finally pushing new features?
Thanks,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed the PR title...

Copy link
Copy Markdown
Member

@lmazuel lmazuel Jan 9, 2018

Choose a reason for hiding this comment

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

Thanks! It's just that sometimes people push stuff they don't want to push ;)

@JinFengMS JinFengMS changed the title fix service map swagger validation errors Update service map swagger spec to latest and fix validation errors Jan 9, 2018
@lmazuel
Copy link
Copy Markdown
Member

lmazuel commented Jan 9, 2018

@JinFengMS Some of your new samples are not considered valid by the CI, could you take a look? Thanks!

@JinFengMS
Copy link
Copy Markdown
Contributor Author

@lmazuel I've fixed critical error reported by the CI which may block the build, for those jobs that "allowed failure" can I address them later?

@lmazuel
Copy link
Copy Markdown
Member

lmazuel commented Jan 9, 2018

@JinFengMS Job marked as "PR_ONLY=true" implies this is issue introduced by the PR itself. Example:

{ code: 'REQUEST_VALIDATION_ERROR',
  id: 'OAV109',
  message: 'Found errors in validating the request for x-ms-example "SMMachinesListByWorkspaceGet" in operation "Machines_ListByWorkspace".',

This is an example added by this exact PR, so every example you introduce should at least be valid in the PR you introduce it.
So, you can forget PR-ONLY=false, but please take a look at the two failed PR-ONLY=true

@azuresdkciprbot
Copy link
Copy Markdown

Hi There,

I am the AutoRest Linter Azure bot. I am here to help. My task is to analyze the situation from the AutoRest linter perspective. Please review the below analysis result:

File: specification/service-map/resource-manager/readme.md
Before the PR: Warning(s): 0 Error(s): 4
After the PR: Warning(s): 0 Error(s): 1

AutoRest Linter Guidelines | AutoRest Linter Issues | Send feedback

Thanks for your co-operation.

@AutorestCI
Copy link
Copy Markdown

AutorestCI commented Feb 14, 2018

Automation for azure-sdk-for-go

Was unable to create SDK azure-sdk-for-go PR for this closed PR.

@AutorestCI
Copy link
Copy Markdown

AutorestCI commented Feb 14, 2018

Automation for azure-sdk-for-python

Was unable to create SDK azure-sdk-for-python PR for this closed PR.

@azuresdkciprbot
Copy link
Copy Markdown

Hi There,

I am the AutoRest Linter Azure bot. I am here to help. My task is to analyze the situation from the AutoRest linter perspective. Please review the below analysis result:

File: specification/service-map/resource-manager/readme.md
Before the PR: Warning(s): 0 Error(s): 4
After the PR: Warning(s): 0 Error(s): 1

AutoRest Linter Guidelines | AutoRest Linter Issues | Send feedback

Thanks for your co-operation.

@JinFengMS
Copy link
Copy Markdown
Contributor Author

All the errors in examples are fixed. Now I we only have below errors with PR-ONLY=true from the build:
#7564.10 failed '/providers/Microsoft.OperationalInsights/operations' - as we discussed before service map is sharing RP with other services and this operation will never routed to us even we implemented it.
#7564.12 failed BreakingChange - These changes have been made and online now, I assume we don't have to deal with these "BreakingChanges"
#7564.14 failed liveValidation - Unsure how to fix this, is this a "MUST"? If so, please suggest how to specify an live endpoint.

}
},
"Ports": {
"ports": {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could you confirm this is expected and the exact case used in the JSON? C# is not case-sensitive, but Python, Node, etc. are case-sensitive. I'm nervous when I see a case change :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yes, it is expected change.

}
},
"ClientGroups": {
"clientGroups": {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could you confirm this is expected and the exact case used in the JSON?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yes, they are.

@lmazuel
Copy link
Copy Markdown
Member

lmazuel commented Feb 14, 2018

All what you describe (10/12/14) are not required since you put your Swagger in a "preview" folder. Just look at the two comments I wrote and should be good :)

@JinFengMS
Copy link
Copy Markdown
Contributor Author

Confirmed the two comments, we are good to go:)

@lmazuel lmazuel merged commit d8866e7 into Azure:master Feb 14, 2018
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.

5 participants