Fixes for code review comments from https://github.com/Azure/azure-rest-api-specs/pull/752#761
Fixes for code review comments from https://github.com/Azure/azure-rest-api-specs/pull/752#761fearthecowboy merged 8 commits intoAzure:masterfrom naveedaz:master
Conversation
| "state" | ||
| ], | ||
| "type": "object", | ||
| "properties": { |
There was a problem hiding this comment.
@naveedaz: General comment: Since webapp has a big surface area for their APIs, there are lot of objects. It is hard for us to cover all the objects manually. It would be nice if the individual service teams would diligently mark the model properties as required or provide default values or mark them readOnly wherever necessary. The intent of the initial code review was to get this message across.
What are the required properties of the "Contact" object? Currently everything is optional. It is hard to believe that everything is optional. The service would definitely want some required properties in the "Contact" model
These are the following properties:
"properties": {
"addressMailing": {
"$ref": "#/definitions/Address",
"description": "Mailing address."
},
"email": {
"description": "Email address.",
"type": "string"
},
"fax": {
"description": "Fax number.",
"type": "string"
},
"jobTitle": {
"description": "Job title.",
"type": "string"
},
"nameFirst": {
"description": "First name.",
"type": "string"
},
"nameLast": {
"description": "Last name.",
"type": "string"
},
"nameMiddle": {
"description": "Middle name.",
"type": "string"
},
"organization": {
"description": "Organization.",
"type": "string"
},
"phone": {
"description": "Phone number.",
"type": "string"
}
}
| }, | ||
| "advancedRoutingEnabled": { | ||
| "type": "boolean" | ||
| }, |
| }, | ||
| "advancedRoutingEnabled": { | ||
| "description": "Advanced routing enabled", | ||
| "type": "boolean" |
There was a problem hiding this comment.
Can the description be more sensible? What does advanced routing mean?
| "createdTime": { | ||
| "format": "date-time", | ||
| "description": "Domain creation timestamp.", | ||
| "type": "string", |
We believe this is over-escaped. The intent would be to be left with which means the literal in JSON should be ^[-\w\._\(\)]+[^\\.]$ Refers to: arm-web/2016-03-01/DeletedWebApps.json:1078 in c26c550. [](commit_id = c26c550, deletion_comment = False) |
| }, | ||
| "privateBytesInKB": { | ||
| "format": "int32", | ||
| "description": "A rule based on private bytes.", |
There was a problem hiding this comment.
"format": "int32", [](start = 10, length = 18)
Why did this get removed? This should still be there.
| "properties": { | ||
| "deletedTimestamp": { | ||
| "format": "date-time", | ||
| "description": "Time when the app was deleted.", |
There was a problem hiding this comment.
"format": "date-time", [](start = 14, length = 22)
This shouldn't have been removed. Generation problem?
| "deletedTimestamp": { | ||
| "format": "date-time", | ||
| "description": "Time when the app was deleted.", | ||
| "type": "string", |
There was a problem hiding this comment.
"Time when the app was delete [](start = 29, length = 29)
Time zone? UTC?
| }, | ||
| "lastModifiedTimeUtc": { | ||
| "format": "date-time", | ||
| "description": "Last time the app was modified, in UTC. Read-only.", |
There was a problem hiding this comment.
"date-time" [](start = 24, length = 11)
Lost format again. :(
Please remove "Gets or sets" from descriptions - the language generator will make appropriate text regarding property accessors. Refers to: arm-web/2016-03-01/DeletedWebApps.json:602 in c26c550. [](commit_id = c26c550, deletion_comment = False) |
| }, | ||
| "reroutePercentage": { | ||
| "format": "double", | ||
| "description": "Percentage of the traffic which will be redirected to <code>ActionHostName</code>.", |
There was a problem hiding this comment.
rmat": "double", [](start = 13, length = 16)
more lost formats!
fearthecowboy
left a comment
There was a problem hiding this comment.
Hey @naveedaz We've done a cursory run over a couple files; we're seeing a few issues with missing format and a couple other things. Could you fix them up and re-generate and push a new set of files?
Thanks!
|
Please port the support to create linux plan, particularly this commit |
|
Also it appears we still have property names using |
|
@yugangw-msft Changing the property serverFarmId will break a lot of things. The resources in ARM themselves are serverfarms. Is this really needed right now? |
@naveedaz Not critical, you can do it later |
|
@naveedaz - We ran the semantic validator and found some issues. Can you please resolve them
Warnings[ { code: 'UNUSED_PARAMETER',
Warnings[ { code: 'UNUSED_DEFINITION', |
|
@naveedaz if you can correct the issue brought up by @amarzavery , we're prepared to merge this PR; and then we can move you on to creating SDK and Unit Tests. |
| @@ -10324,9 +9947,6 @@ | |||
| "$ref": "#/parameters/subscriptionIdParameter" | |||
| }, | |||
| { | |||
| "$ref": "#/parameters/resourceGroupNameParameter" | |||
| }, | |||
| { | |||
There was a problem hiding this comment.
Server returns 200 as well. Same for stop(), restart(), startSlot(), restartSot(), stopSlot().
|
@jianghaolu Are the changes you requested completed? |
|
No. The 2 fixes I'm still waiting are:
|
|
Another fix required: |
…. Make SCM type read/write. Add Linux App Fx version.
|
I have made the changes requested by @jianghaolu. Thanks |
|
Thanks Navy, do you know about why |
|
Looks like the issue for |
|
Can we get this merged please? |
|
No modification for NodeJS |
|
No modification for Python |
|
No modification for Ruby |
…es for SCMType. (#878) * Make resourcegroup the first parameter if applicable. * Address CR comments from #761 * Fix HTTP status codes for start/stop/restart app and deployment slots. Make SCM type read/write. Add Linux App Fx version. * Rename operation parameters with name options to avoid conflict with Node CLI SDK. Add config snapshots API. Add valid values for SCMType. * Remove obsolete siteAuthSettings properties
…s API (#925) * Fixes for code review comments * Make resourcegroup the first parameter if applicable. * Address CR comments from #761 * Address more comments on PR * Fix HTTP status codes for start/stop/restart app and deployment slots. Make SCM type read/write. Add Linux App Fx version. * Rename operation parameters with name options to avoid conflict with Node CLI SDK. Add config snapshots API. Add valid values for SCMType. * Fix CR recommendations. Remove obsolete siteAuthSettings properties * Surface the correct publishing user API * Expose hosttype for hostnames * Fix folder structure according to convention * Fix paths in composite swagger json * CR comment fix: Changed parameter name to userDetails.
change cache listing and skus
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