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

New NRP Apiversion, vnet peering, Get Effective route/acls, swagger improvements #379

Merged
merged 4 commits into from
Jul 6, 2016

Conversation

DeepakRajendranMsft
Copy link
Contributor

No description provided.

@azurecla
Copy link

Hi @DeepakRajendranMsft, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
We will now validate the agreement and then real humans will evaluate your PR.

TTYL, AZPRBOT;

"x-ms-pageable": {
"nextLinkName": "nextLink"
},
"x-ms-long-running-operation": true
Copy link
Member

Choose a reason for hiding this comment

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

Please correct the spacing

@DeepakRajendranMsft
Copy link
Contributor Author

@John-Hart fixed indentation

"properties": {
"networkSecurityGroup": {
"$ref": "#/definitions/SubResource",
"description": "Gets the id of network security group that is applied"
Copy link
Member

Choose a reason for hiding this comment

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

Autorest will add "Gets or sets" as a prefix to the description for properties, for languages where appropriate, or just "Gets" for ReadOnly properties for you, so there is no need to specify them here.

In fact, in this example you can see the description ends up not being very readable:

 "Gets or sets gets the id of network security group that is applied".

Since this isn't identified as ReadOnly it will append "Gets or sets"

Copy link
Member

Choose a reason for hiding this comment

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

Also sibiling properties of the $ref will be ignored. The Description, should be in the reference definition

@DeepakRajendranMsft
Copy link
Contributor Author

DeepakRajendranMsft commented Jun 30, 2016

@John-Hart , we have been using "Gets or sets" everywhere in network swagger. We were not aware when AutoRest started adding "Gets or sets" automatically. We should deal with this and remove them as part of a separate PR.

],
"responses": {
"200": {
"description": "",
Copy link
Member

Choose a reason for hiding this comment

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

Could you have a more descriptive description here?

@John-Hart
Copy link
Member

@DeepakRajendranMsft regarding the Gets or sets in the descriptions. That's fine if you want to remove them all in another PR. In the mean time, I've submitted an autorest PR to not prefix the description if it already contains Gets or Sets so it's still readable

@devigned
Copy link
Member

@DeepakRajendranMsft though I do agree with you that we should have separate, small PRs, removing the "Get and Sets" is just a simple find and replace. Do you think we can expand this PR just a little bit and get this cleaned up?

@lmazuel
Copy link
Member

lmazuel commented Jul 1, 2016

@DeepakRajendranMsft Could you check if the new file has a valid paging usage? To avoid this: #349
Thanks!

@devigned @amarzavery

@DeepakRajendranMsft
Copy link
Contributor Author

@devigned @John-Hart we have already generated the SDKs and are using them in powershell. I will definitely fix them, but not immediately. Since the SDK is already published, we should check in the swagger asap so we can avoid getting out of sync. This is why i asking for you to track your feedback in either bugs or github issues and i will address them ASAP.

@tbombach tbombach merged commit c1cacc9 into Azure:master Jul 6, 2016
@tbombach
Copy link
Member

tbombach commented Jul 6, 2016

Merged

@John-Hart
Copy link
Member

I opened two issues #386 #385 for the blank descriptions and the duplicate Gets and Sets in the descriptions. I didn't open one for the Default responses because, even though you have an #/definitions/ErrorDetails and #/definitions/Error defined it doesn't look like they are being used. If they are then defining a Default Response would be required

@AutorestCI
Copy link

No modification for Python

@AutorestCI
Copy link

No modification for NodeJS

@AutorestCI
Copy link

No modification for Python

@AutorestCI
Copy link

No modification for NodeJS

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.

7 participants