Updating documentation for Microsoft.VisualStudio with project resour…#1498
Updating documentation for Microsoft.VisualStudio with project resour…#1498balajikris merged 1 commit intoAzure:currentfrom
Conversation
|
@niblak, |
There was a problem hiding this comment.
I am not sure how best to express the fact that these two properties are required (ProcessTemplateId and VersionControlOption).
Also, there's a relatively static range of values that are accepted for these. If they were formal parameters I'd consider using x-ms-enum in the RP spec to list all possible values, but in this particular case I am not sure how to express that in documentation.
There was a problem hiding this comment.
I made a comment about this here. I think that should work, but you could quickly verify that by generating C# library using autorest and viewing the definition for ProjectResource
There was a problem hiding this comment.
Thanks, I'll give that a try.
Is it possible to use the enum semantics on non-string types? ProcessTemplateId is actually a GUID, and the only accepted values are 6B724908-EF14-45CF-84F8-768B5384DA45, ADCC42AB-9882-485E-A3ED-7678F01F66BC, 27450541-8E31-4150-9947-DC59F998FC01.
From looking at other RP specs and the Swagger docs, I don't see a way to assign a friendly name to these (the IDs correspond to Scrum, Agile and Cmmi process templates).
There was a problem hiding this comment.
you are correct that there isn't a way to do this as of today. For the future, I hear that there is a proposal to expand the scope of x-ms-enum to accommodate this kind of friendly name assignment.
There was a problem hiding this comment.
you could model this like so:
"properties": {
"properties": {
"ProcessTemplateId": { "required": true },
"VersionControlOption": { "required": true },
"properties": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"x-ms-client-flatten": true
},
"x-ms-client-flatten": true
}
}|
@niblak - The CI job found some errors with the new examples you added for the operations that are being added by this PR. See here |
725cfd9 to
232efa5
Compare
|
@niblak -- I can see you are working on this, can you please tag me in a comment after you are done fixing the validation errors? Thanks. |
|
@balajikris sorry about all the pushes. I've resolved most of the example errors but am confused on the remaining two: INVALID_RESPONSE_BODY and INVALID_REQUEST_PARAMETER. What am I missing here? It seems to be complaining about properties that are actually part of the response/request body for our API. |
|
Hey @niblak - Sure, Its complaining because you have |
a49edda to
07ff683
Compare
…ce APIs. Corrections to existing examples.
|
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: AutoRest Linter Guidelines | AutoRest Linter Issues Send feedback and make AutoRest Linter Azure Bot smarter day by day! Thanks for your co-operation. |
|
Thanks @balajikris. That was the problem and the CI build is passing now. Build #10 is failing due to a null ref, should I be concerned about this one? The syntax for specifying ProcessTemplateId and VersionControlOption as required didn't seem to work unfortunately (failed both the PR build and C# client generation). For now, I've just added the list of valid values to the method summary. Not ideal, but there seems to be precedent for this in other RP specs. |
|
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: AutoRest Linter Guidelines | AutoRest Linter Issues Send feedback and make AutoRest Linter Azure Bot smarter day by day! Thanks for your co-operation. |
|
@niblak - don't worry about the null ref on the build. Seems like a bug in the tool. CI looks much nicer now, thanks for making hte changes 👍 Will review again in a bit |
|
@niblak - If you are all done here, I'm ready to pull this in. Let me know. Thanks. |
|
@balajikris Good to go. Thanks for the review! |
|
No modification for AutorestCI/azure-sdk-for-node |
|
No modification for AutorestCI/azure-sdk-for-ruby |
|
No modification for AutorestCI/azure-sdk-for-python |
…d balancer (#1528) * Updating documentation for Microsoft.VisualStudio with project resource APIs. Corrections to existing examples. (#1498) * Added Api-Version 2017-07-01 for RecoveryServices.Backup Jobs (#1502) * Added Api-Version 2017-07-01 for RecoveryServices.Backup Jobs * Updated tag names * Microsoft.Sql - Added data sync to package-2015-05-preview (#1510) * Added advisors and data sync to package-2015-05-preview * Removed advisors so current branch is only data sync * Make MsDeploy and MsDeployLog Azure resources (#1519) * Add public certificates, Functions Admin Token and MSDeploy APIs * Revert resource definition changes and description change for site properties * Make type and name readonly properties. Add ARM envelope to MSDeployStatus object * Fix missing quotation issue. * Add long running operation to MS deploy * Make MsDeploy and MsDeployLog Azure resources * Fix some AutoRest validation issues. Use dictionary for msdeploy.setparameters * Ensure models are same across all schemas in Microsoft.Web * Fix azure resource type across all models * Remove conflicting ListOperations. It is not used for public Azure. * no YAML in glob patterns for report scripts * Copying 2017-06-01 to 2017-08-01 * Changes for new API version * Updated script to run autorest with grouping swaggers based on config file (#1529) * Removed the maxLength for entities (#1527) * Update folder structure example. (#1489) Agreed on the changes * [Travis-ci] Oad in ci status (#1520) * Breaking change build should fail if result contains error Skipping newly added files Incorporating review feedback * testing * log the result as oad.compare returns promise for caller * Use published oad * Revert "testing" This reverts commit a9be94d. * Removed maxLength from entity name (#1531) * This is to add Cognitive Services data-plane API specs starting with Face API. (#1467) * Adding data plane spec starting with Face * Move Spec to right folder * Fixing validation issues. * Fixing issues and adding a readme.md * Fixing examples by removing decimals. * Removing another decimal value * Update readme.md * Updating spec based on comments. * Removing .gitignore. * Relay: Removed the maxLength for entity names (#1535)
…d balancer (#1528) (#1543) * Updating documentation for Microsoft.VisualStudio with project resource APIs. Corrections to existing examples. (#1498) * Added Api-Version 2017-07-01 for RecoveryServices.Backup Jobs (#1502) * Added Api-Version 2017-07-01 for RecoveryServices.Backup Jobs * Updated tag names * Microsoft.Sql - Added data sync to package-2015-05-preview (#1510) * Added advisors and data sync to package-2015-05-preview * Removed advisors so current branch is only data sync * Make MsDeploy and MsDeployLog Azure resources (#1519) * Add public certificates, Functions Admin Token and MSDeploy APIs * Revert resource definition changes and description change for site properties * Make type and name readonly properties. Add ARM envelope to MSDeployStatus object * Fix missing quotation issue. * Add long running operation to MS deploy * Make MsDeploy and MsDeployLog Azure resources * Fix some AutoRest validation issues. Use dictionary for msdeploy.setparameters * Ensure models are same across all schemas in Microsoft.Web * Fix azure resource type across all models * Remove conflicting ListOperations. It is not used for public Azure. * no YAML in glob patterns for report scripts * Copying 2017-06-01 to 2017-08-01 * Changes for new API version * Updated script to run autorest with grouping swaggers based on config file (#1529) * Removed the maxLength for entities (#1527) * Update folder structure example. (#1489) Agreed on the changes * [Travis-ci] Oad in ci status (#1520) * Breaking change build should fail if result contains error Skipping newly added files Incorporating review feedback * testing * log the result as oad.compare returns promise for caller * Use published oad * Revert "testing" This reverts commit a9be94d. * Removed maxLength from entity name (#1531) * This is to add Cognitive Services data-plane API specs starting with Face API. (#1467) * Adding data plane spec starting with Face * Move Spec to right folder * Fixing validation issues. * Fixing issues and adding a readme.md * Fixing examples by removing decimals. * Removing another decimal value * Update readme.md * Updating spec based on comments. * Removing .gitignore. * Relay: Removed the maxLength for entity names (#1535)
…ce APIs. Corrections to existing examples.
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