Граф коммитов

5691 Коммитов

Автор SHA1 Сообщение Дата
Pan Shao 306c387fdd
Change body to bodyroot in converter (#5032)
Co-authored-by: Pan Shao <pashao@microsoft.com>
2024-11-01 10:27:29 +08:00
Timothee Guerin 264b421ef4
Bump core to 3.10.3 to include log fix (#5036) 2024-10-31 01:33:58 +00:00
Mike Harder 7b4544801c
Log stack trace if `error.stack` is defined (#5035)
- Fixes #5034
2024-10-31 00:00:43 +00:00
Pan Shao 18590bc26d
Bump versions (#5033)
Co-authored-by: Microsoft Auto Changeset Bot <autochangesetbot@microsoft.com>
2024-10-25 12:41:40 +08:00
Pan Shao 0d972f0f2b
Fix some warnings in tsp converter (#5031)
1. support action template
2. add suppression for
"@azure-tools/typespec-azure-core/composition-over-inheritance"
3. add suppression for
"@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state"

---------

Co-authored-by: Pan Shao <pashao@microsoft.com>
2024-10-24 19:52:30 +08:00
Pan Shao 1021b5fb9d
Bump versions (#5029)
Co-authored-by: Microsoft Auto Changeset Bot <autochangesetbot@microsoft.com>
2024-10-17 19:22:23 +08:00
Pan Shao 18579a3159
Fix flatten and no doc warning in converter (#5030)
As titled.

---------

Co-authored-by: Pan Shao <pashao@microsoft.com>
2024-10-17 10:13:19 +00:00
Pan Shao ab37a4d172
upgrade tsp compiler to 0.61 (#5027)
1. Upgrade tsp compiler to 0.61
2. Fix paging response issues by:
2.1 if user customize the paging response then use the customized mode.
2.2 if user defined model is the same as ResourceListResult, then
replace it by ResourceListResult
2.3 if interface name conflicts with model name, then rename interface
name
3. Support customize LRO
4. Support ArmProviderActionAsync template.

---------

Co-authored-by: Pan Shao <pashao@microsoft.com>
2024-10-16 19:10:40 +08:00
Pan Shao 976033f939
Bump versions (#5026)
Co-authored-by: Microsoft Auto Changeset Bot <autochangesetbot@microsoft.com>
2024-10-09 10:18:59 +08:00
Pan Shao 0663a7965a
upgrade compiler version to 0.60 (#5025)
1. Fix the incorrect encoded name.
2. Remove hardcoded operationid for ArmResourceListByParent
3. Some query parameters and baseParmaetes are not generated correctly.
Fixed in this PR.
4. Uptake the operationid linter to
@azure-tools/typespec-azure-core/no-openapi
5. Upgrade compiler version to 0.60
6. @operationId are added to operations in routes.tsp in accordance with
its original one.
7. Add suppressions to enums without documents.

---------

Co-authored-by: Pan Shao <pashao@microsoft.com>
2024-10-08 17:02:45 +08:00
Pan Shao c6ab5f6878
Uptake SDK configuration to converter (#5023)
Co-authored-by: Pan Shao <pashao@microsoft.com>
2024-09-26 11:22:18 +08:00
Pan Shao cdf589fe84
Fix issues in converter tool (#5022)
1. update ruleset in tspconfig.yaml
2. Some operations are not calculated as resource operations
3. Some duplicate operations in the same interface
4. interface Operations extends Azure.ResourceManager.Operations should
be generated according to swagger
5. Take variables into consideration when calculating parent.

---------

Co-authored-by: Pan Shao <pashao@microsoft.com>
2024-09-25 14:34:36 +08:00
Pan Shao ff93b8b61b
Bump versions (#5015)
Co-authored-by: Microsoft Auto Changeset Bot <autochangesetbot@microsoft.com>
2024-09-09 16:19:58 +08:00
Pan Shao 2547245a1b
Remove dependency of .net generator from tsp converter (#5008)
Fix https://github.com/Azure/autorest/issues/4995

What still left is:
1. Multi path cases depend on TypeSpec design: "arm-apimanagement",
"arm-compute", "arm-machinelearningservices"
2. Expanded cases depend on TypeSpec design: "arm-dns"
3. Deal with directives: an example is arm-storage.

---------

Co-authored-by: Pan Shao <pashao@microsoft.com>
2024-09-06 16:40:16 +08:00
Patrick Hallisey f9c30f35b8
Rename autorest.csharp branch feature/v3 to main (#5011) 2024-09-04 04:34:45 -07:00
Pan Shao a9acf9a4e4
Bump versions (#5007)
Co-authored-by: Microsoft Auto Changeset Bot <autochangesetbot@microsoft.com>
2024-08-28 14:54:44 +08:00
Joel Hendrix e801c982de
Note that final-state-via is only for POST (#5004) 2024-08-20 14:30:22 -07:00
Pan Shao d00c2a0046
upgrade tsp compiler to 0.59 (#5003)
Co-authored-by: Pan Shao <pashao@microsoft.com>
2024-08-19 16:31:17 +08:00
Pan Shao c77664b6c4
Bump versions (#5000)
Co-authored-by: Microsoft Auto Changeset Bot <autochangesetbot@microsoft.com>
2024-08-13 15:26:42 +08:00
Pan Shao 812da7888f
Upgrade tsp to 0.58 (#4998)
Upgrade tsp version of converter to 0.58

Uptake changes from 

- https://github.com/Azure/typespec-azure/issues/709

1. For brownfield: add flag `arm-resource-flattening`, add
`@@flattenProperty` to properties if needed, direct use of
Azure.ResourceManager.XXXResource allows us not need
`x-ms-client-flatten` any more.
2. For greenfield: no flag `arm-resource-flattening`, no
`@@flattenProperty`

- https://github.com/Azure/typespec-azure/issues/862

Remove all the workaround for Azure.ResourceManager.XXXResource.

---------

Co-authored-by: Pan Shao <pashao@microsoft.com>
2024-08-12 12:48:40 +08:00
Wes Haggard 4d3ee05850
Remove unused macos references (#4978) 2024-07-19 11:27:17 -07:00
Jose Manuel Heredia Hidalgo d665678278
[Openapi to Typespec] Detect Arm and Fix unsupported char type (#4989)
* Currently SchemaType.Char is unsupported, mapping it to string to fix
the problem
* Automatically detect when a swagger is ARM
Fixes #4991
2024-07-12 13:39:46 -07:00
Pan Shao fa08f8cc50
Bump versions (#4982)
Co-authored-by: Microsoft Auto Changeset Bot <autochangesetbot@microsoft.com>
2024-06-25 17:24:01 +08:00
Pan Shao 74c57ee452
Upgrade compiler to 0.57 (#4981) 2024-06-25 16:02:49 +08:00
Pan Shao 765bc784b0
Bump versions (#4977)
Co-authored-by: Microsoft Auto Changeset Bot <autochangesetbot@microsoft.com>
2024-06-11 12:29:17 +08:00
Pan Shao 6e0147d1df
Output autogen information (#4975)
1. Fix https://github.com/Azure/autorest/issues/4963
2. Support "x-ms-identifiers"
3. Add #suppress
"@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state"
on the enum for provisioning.
2024-06-07 10:11:24 +08:00
Timothee Guerin 2ec0240df9
Fix invalid connection (#4974) 2024-06-03 18:09:09 +00:00
Timothee Guerin 38507ae584
Disable docker publish for now (#4973)
It has been broken for a long time and not sure anybody uses it anyway,
This is currently blocking any other publishing
2024-06-03 17:11:51 +00:00
Patrick Hallisey 3a4b4811e1
Use new service connection for Autorest publish (#4972) 2024-05-31 18:26:49 +00:00
Pan Shao 72bbf9c3ce
Change enum definition to latest grammer (#4945)
Fix #4943
2024-05-29 22:30:19 +08:00
Pan Shao 21d78e4733
Bump versions (#4970)
Co-authored-by: Microsoft Auto Changeset Bot <autochangesetbot@microsoft.com>
2024-05-29 10:54:00 +08:00
Laurent Mazuel 4ddb583d72
Add disclaimer that flatteing is not recommended anymore (#4908) 2024-05-28 14:26:04 -07:00
Pan Shao 961b09d5a2
Upgrade compiler version and fix issues (#4967)
1. Upgrade compiler version to 0.56
2. `TrackedResourceBase` => `Foundations.TrackedResource` (same as
others: `XXXResourceBase` => `Foundations.XXXResource`)
3. `Azure.ResourceManager.ManagedServiceIdentity` =>
`Azure.ResourceManager.ManagedServiceIdentityProperty` (same as others
`Azure.ResourceManager.XXX`=> `Azure.ResourceManager.XXXProperty`)
4. `extends Record<XXX>` => `...Record<XXX>`
5. `name: string` in resource => `ResourceNameParameter` template
6. `@parameterVisibility("read")` => `@parameterVisibility`
7. `TrackedResource` => `Azure.ResourceManager.TrackedResource`
8. Add suppressions of below syntax to brown field services
- ArmResourceDeleteSync
- ArmResourceDeleteAsync
- property has record type-
2024-05-24 11:25:01 +08:00
Patrick Hallisey 1f91e166f3
Use authenticatedContainerRegistries config for 1es template (#4935) 2024-05-08 13:20:59 -07:00
Pan Shao 33f1071120
Support for anyObject (#4958)
Fix #4957
Fix #4959

---------

Co-authored-by: Pan Shao <pashao@microsoft.com>
2024-04-26 10:15:11 +08:00
Pan Shao 03fc9adaaf
Change isFullCompatible logic (#4954)
1. Fix #4953 
2. Change the logic of isFullCompatible to "only brownfield is full
compatible"
3. Add compiler server to vscode setting
4. Enable "arm-agrifood", "arm-sphere", "arm-test"
2024-04-19 19:23:47 +08:00
Pan Shao 6018eb2b79
Support api version as path parameter (#4952)
Fix #4951 #4949 #4950
And fix some compile error for version name
2024-04-19 17:30:27 +08:00
Pan Shao a76da06009
Add command to call tsp compilation for test projects (#4948)
This is part of https://github.com/Azure/autorest/issues/4947

We could call `npm run generate swagger {project folder}` to run the
compilation.
2024-04-17 10:24:39 +08:00
Patrick Hallisey 977049cf32
Use 1es pipeline templates (#4920)
Co-authored-by: Scott Beddall (from Dev Box) <scbedd@microsoft.com>
Co-authored-by: Timothee Guerin <tiguerin@microsoft.com>
2024-03-26 18:46:55 +00:00
Rodge Fu 63ffe68961
Inlcude csharp rename decorator when openai-to-typespec generating tsp (#4907)
Fixes https://github.com/Azure/autorest.csharp/issues/4236.
Generate csharp renaming decorator when openai-to-typespec generating
tsp. (include rename of resource, resource.property, model,
model.property, enum, enum.member and operation name)

related autorest.csharp change can be found at
https://github.com/Azure/autorest.csharp/pull/4380
2024-03-19 21:20:34 +08:00
Chenjie Shi cc5a4dc000
lock openapi-to-typespec test config (#4919)
fix: https://github.com/Azure/autorest/issues/4913
2024-03-19 15:00:46 +08:00
Chenjie Shi 746b972309
Fix typo (#4904) 2024-03-12 11:26:43 +08:00
Timothee Guerin 8d137ce24e
Bump versions (#4897) 2024-02-28 19:04:14 +00:00
Timothee Guerin 04b947f109
Fix crash with duplicate paths (#4896)
fix #4882 too
2024-02-28 10:01:48 -08:00
Chenjie Shi 6c9655e62e
change to use different base parameter for different resource (#4889)
fix: https://github.com/Azure/autorest/issues/4872
2024-02-27 07:29:20 +00:00
Chenjie Shi a445362db3
Add a flag to disable conversion feature for backcomp (#4887)
fix #4879

need wait for #4885 to be merged first.
2024-02-23 09:14:32 +00:00
Chenjie Shi 0a048786f2
Change to use raw operation for non-resource operations (#4886)
resolve: https://github.com/Azure/autorest/issues/4881
2024-02-23 03:27:25 +00:00
Chenjie Shi 894d5a84f5
fix default value of array and remove default value of duration temporarily (#4888)
fix: https://github.com/Azure/autorest/issues/4874
2024-02-22 10:20:18 +00:00
Chenjie Shi 1a40a3af06
migrate @projectedName to @encodedName (#4885)
resolve: #4884
2024-02-22 15:05:44 +08:00
Gil LaHaye 1819fe1d8d
Fix typo in autorest-configuration-schema.ts (#4842)
description: "Reservered for future use." -> description: "Reserved for
future use."
2024-02-16 07:01:00 -08:00