Conversation
Functional differences: - FailoverGroupResource -> FailoverGroup - FailoverGroupResourceList -> FailoverGroupListResult - Defined mutability for properties - Defined pageability for list operation - Added 202 response codes to long running operations
| "type": "string" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/ApiVersionParameter" |
There was a problem hiding this comment.
nit: maintain a consistent parameter ordering, either place ApiVersion and SubscriptionId together at the beginning of the parameters section or at the end.
There was a problem hiding this comment.
Consistent with what? This is both consistent within this file and consistent with the order that the parameters appear in the URI.
There was a problem hiding this comment.
Consistent with newer specs we are introducing in the repo which we are making sure adhere to this convention. We're in the process of writing a validation rule to that effect.
Simply put we want to ensure that the parameter section has path parameters first followed by body parameters and the client-level parameters (api-version and subscriptionId) in the beginning or at the end of the parameters section.
There was a problem hiding this comment.
Ok, this is doable. Do you have a discussion I can link to as justification in my Swagger generator source code?
There was a problem hiding this comment.
The closest discussion is this though we haven't articulated the details yet. Hope this helps
| }, | ||
| "parameters": [ | ||
| { | ||
| "$ref": "#/parameters/ApiVersionParameter" |
There was a problem hiding this comment.
nit: maintain a consistent parameter ordering, either place ApiVersion and SubscriptionId together at the beginning of the parameters section or at the end.
| }, | ||
| "parameters": [ | ||
| { | ||
| "$ref": "#/parameters/ApiVersionParameter" |
There was a problem hiding this comment.
nit: maintain a consistent parameter ordering, either place ApiVersion and SubscriptionId together at the beginning of the parameters section or at the end.
| }, | ||
| "parameters": [ | ||
| { | ||
| "$ref": "#/parameters/ApiVersionParameter" |
There was a problem hiding this comment.
nit: maintain a consistent parameter ordering, either place ApiVersion and SubscriptionId together at the beginning of the parameters section or at the end.
| ], | ||
| "description": "Sets which server is primary by failing over from the current primary server.", | ||
| "description": "Fails over from the current primary server to this server.", | ||
| "operationId": "FailoverGroups_Failover", |
There was a problem hiding this comment.
nit: operationId should be of the noun_verb form do consider changing this but keep in mind that would be a breaking change
There was a problem hiding this comment.
"Fail over" is a verb :)
| }, | ||
| "parameters": [ | ||
| { | ||
| "$ref": "#/parameters/ApiVersionParameter" |
There was a problem hiding this comment.
nit: maintain a consistent parameter ordering, either place ApiVersion and SubscriptionId together at the beginning of the parameters section or at the end.
| "x-ms-parameter-location": "method" | ||
| }, | ||
| "ServerParameter": { | ||
| "ServerNameParameter": { |
There was a problem hiding this comment.
This isn't used anywhere. Either refer it from the appropriate operation parameters or delete it
There was a problem hiding this comment.
We will soon be merging sql swagger files into a single file in order to move away from composite swagger, so this parameter will be used by other operations in that combined file. Do you mind if we keep this standard parameter for now?
| }, | ||
| "FailoverGroupParameter": { | ||
| "name": "failoverGroupName", | ||
| "DatabaseNameParameter": { |
There was a problem hiding this comment.
This isn't used anywhere. Either refer it from the appropriate operation parameters or delete it
|
Would also like to point out that this would be a breaking change (since the method signatures are being modified) |
Following order specified in Azure#1611
|
Understood there are client breaking changes. Not a major problem since clients haven't been published since this spec was first checked in. Thanks :) |
|
LGTM pending CI builds |
|
Thank you very much for the quick response time @dsgouda ! |
|
@azuresdkci Test this please |
| "name": "resourceGroupName", | ||
| "in": "path", | ||
| "description": "The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.", | ||
| "description": "The name of the resource group that contains the resource.", |
There was a problem hiding this comment.
I believe the description here does not match with other specs under the same composite swagger, either revert this to the older description or update all the descriptions under the composite swagger to match this. It would break builds otherwise.
The problem here is that when we merge the documents into a single model, its common nodes should be exactly the same, it would be difficult to say which one overrides all other nodes.
A similar issue was filed here
|
No modification for NodeJS |
|
Thanks @dsgouda !! 👍 |
* Telephonyservices RP * Update examples * Updated listby examples responses * fix go path * fix go sdk readme
Functional differences:
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
api-versionin the path should match theapi-versionin the spec).Quality of Swagger