Skip to content

Commit 957096d

Browse files
authored
Adding swagger sorting command to tcp-client (#8730)
* Adding swagger sorting command to tcp-client * PR comment * Adding test to verify sort-swagger * added expected file to check against
1 parent c5bfb1e commit 957096d

File tree

9 files changed

+1607
-370
lines changed

9 files changed

+1607
-370
lines changed

tools/tsp-client/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ Generate a client library from a TypeSpec project. The `generate` command should
4545
### convert
4646
Convert an existing swagger specification to a TypeSpec project. This command should only be run once to get started working on a TypeSpec project. TypeSpec projects will need to be optimized manually and fully reviewed after conversion. When using this command a path or url to a swagger README file is required through the `--swagger-readme` flag.
4747

48+
### sort-swagger
49+
Sort an existing swagger specification to be the same content order with TypeSpec generated swagger. This will allow you to easily compare and identify differences between the existing swagger and TypeSpec generated one. You should run this command on existing swagger files and check them in prior to creating converted TypeSpec PRs.
50+
4851
## Options
4952
```
5053
--arm Convert ARM swagger specification to TypeSpec [boolean]

0 commit comments

Comments
 (0)