Skip to content

Conversation

@mcgallan
Copy link
Member

@mcgallan mcgallan commented Sep 4, 2025

This PR migrates your latest version (identified by the tag in your readme.md) of swagger to TypeSpec. We already tried our best to make sure the TypeSpec represents same as previous swagger. Since we lack the business knowledge, please validate this PR again to make sure it's functional equivalent as before. The local validation step is at Getting started | TypeSpec Azure

Besides, TypeSpec encourages to follow ARM guidelines. Therefore, some representations in your previous swagger will be fixed to follow these guidelines. When you see differences in your local validation, please keep this note in mind.

Please reach out to TypeSpec Discussions Channel if there is any help needed.

Existing problems:
There is an issue in the patchableAppliance model where "x-ms-client-flatten": true is added to the model itself rather than to the model properties. Currently, TypeSpec cannot handle this type of syntax.

@github-actions
Copy link

github-actions bot commented Sep 4, 2025

Next Steps to Merge

✅ All automated merging requirements have been met! To get your PR merged, see aka.ms/azsdk/specreview/merge.

Comment generated by summarize-checks workflow run.

@github-actions github-actions bot added resource-manager TypeSpec Authored with TypeSpec BreakingChangeReviewRequired <valid label in PR review process>add this label when breaking change review is required labels Sep 4, 2025
@github-actions
Copy link

github-actions bot commented Sep 4, 2025

API Change Check

APIView identified API level changes in this PR and created the following API reviews

Language API Review for Package
TypeSpec Microsoft.ResourceConnector
Java com.azure.resourcemanager:azure-resourcemanager-resourceconnector
JavaScript @azure/arm-resourceconnector
Python azure-mgmt-resourceconnector
Swagger Microsoft.ResourceConnector-ResourceConnector

@pshao25 pshao25 force-pushed the Convert-ResourceConnector branch from 1ab2300 to 84dd58a Compare September 23, 2025 10:20
@pshao25 pshao25 requested a review from Copilot September 23, 2025 10:21
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR migrates the ResourceConnector service's swagger specification to TypeSpec format. The migration includes the conversion of the REST API definitions, models, and examples while maintaining functional equivalence with the original swagger specification.

Key changes in this migration:

  • Complete conversion from swagger JSON to TypeSpec format with proper ARM template structure
  • Restructured example files with improved formatting and additional metadata
  • Updated API definitions with TypeSpec-specific annotations and decorators

Reviewed Changes

Copilot reviewed 29 out of 30 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
specification/resourceconnector/ResourceConnector.Management/main.tsp Main TypeSpec entry point defining the service, versioning, and namespace
specification/resourceconnector/ResourceConnector.Management/models.tsp Core data models and type definitions converted from swagger schemas
specification/resourceconnector/ResourceConnector.Management/Appliance.tsp Resource-specific operations and interfaces for Appliance resources
specification/resourceconnector/ResourceConnector.Management/routes.tsp Additional route definitions for non-standard operations
specification/resourceconnector/ResourceConnector.Management/back-compatible.tsp Client generation compatibility mappings
specification/resourceconnector/ResourceConnector.Management/tspconfig.yaml TypeSpec configuration for code generation across multiple languages
specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/appliances.json Updated swagger file generated from TypeSpec with improved structure
Multiple example files Reformatted JSON examples with consistent property ordering and metadata

@github-actions github-actions bot added WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required and removed NotReadyForARMReview labels Oct 31, 2025
@github-actions github-actions bot removed the WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required label Oct 31, 2025
@v-xuto v-xuto force-pushed the Convert-ResourceConnector branch from 8835e0e to e14a2f7 Compare October 31, 2025 08:18
@github-actions github-actions bot added BreakingChangeReviewRequired <valid label in PR review process>add this label when breaking change review is required NotReadyForARMReview and removed ARMChangesRequested labels Oct 31, 2025
@pshao25 pshao25 added the BreakingChange-Approved-Benign Changes are not breaking at the REST API level and have at most minor impact to generated SDKs. label Nov 10, 2025
@github-actions github-actions bot added WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required and removed NotReadyForARMReview labels Nov 10, 2025
@pshao25 pshao25 added Approved-LintDiff PublishToCustomers Acknowledgement the changes will be published to Azure customers. ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review labels Nov 10, 2025
@github-actions github-actions bot removed the WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required label Nov 10, 2025
@pshao25 pshao25 merged commit 4766d82 into Azure:main Nov 10, 2025
57 of 59 checks passed
anushkasingh16 pushed a commit to anushkasingh16/azure-rest-api-specs that referenced this pull request Nov 11, 2025
* convert and compile

* recompile

* update

* update

* update

* Delete package-lock.json

* fix comment

* update

* format

* update description and summary

* delete

* resolve breaking for js

* Add client.tsp to mitigate TypeSpec migration breaks - fix SshKey -> SSHKey breaking change

* Fix client.tsp imports and finalize TypeSpec migration break mitigation

* client.tsp for java

* merge

* add config for python

* Resolve conflicts

* Resolve conflict

* add flatten on parameter patchableAppliance

* remove csharp config

---------

Co-authored-by: Pan Shao <97225342+pshao25@users.noreply.github.com>
Co-authored-by: Jiao Di (MSFT) <80496810+v-jiaodi@users.noreply.github.com>
Co-authored-by: Weidong Xu <weidxu@microsoft.com>
Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>
Co-authored-by: Tong Xu (MSFT) <v-xuto@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Approved-LintDiff ARMReview ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review BreakingChange-Approved-Benign Changes are not breaking at the REST API level and have at most minor impact to generated SDKs. BreakingChange-JavaScript-Sdk BreakingChange-JavaScript-Sdk-Approved BreakingChange-Python-Sdk BreakingChange-Python-Sdk-Approved BreakingChangeReviewRequired <valid label in PR review process>add this label when breaking change review is required PublishToCustomers Acknowledgement the changes will be published to Azure customers. resource-manager TypeSpec Authored with TypeSpec

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants