Skip to content

Commit

Permalink
Merge branch 'main' into fix-multipart-diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
msyyc authored Sep 13, 2024
2 parents 44cf17b + 95386b0 commit 865e7f0
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
7 changes: 7 additions & 0 deletions .chronus/changes/allow-reserved-2024-8-11-16-40-29.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
changeKind: feature
packages:
- "@azure-tools/typespec-azure-resource-manager"
---

`x-ms-skip-url-encoding` should be replaced with `allowReserved`
2 changes: 1 addition & 1 deletion core
Submodule core updated 58 files
+7 −1 packages/http-client-csharp/generator/Microsoft.Generator.CSharp.ClientModel/src/ClientModelPlugin.cs
+2 −2 ...es/http-client-csharp/generator/Microsoft.Generator.CSharp.ClientModel/src/Primitives/ScmKnownParameters.cs
+1 −1 packages/http-client-csharp/generator/Microsoft.Generator.CSharp.ClientModel/src/Providers/ClientProvider.cs
+5 −2 packages/http-client-csharp/generator/Microsoft.Generator.CSharp.ClientModel/src/ScmTypeFactory.cs
+3 −3 ...-client-csharp/generator/Microsoft.Generator.CSharp.ClientModel/test/OutputTypes/ScmKnownParametersTests.cs
+4 −4 packages/http-client-csharp/generator/Microsoft.Generator.CSharp.ClientModel/test/TestHelpers/MockHelpers.cs
+1 −1 packages/http-client-csharp/generator/Microsoft.Generator.CSharp.Customization/src/CodeGenTypeAttribute.cs
+1 −1 packages/http-client-csharp/generator/Microsoft.Generator.CSharp/src/CodeModelPlugin.cs
+7 −6 packages/http-client-csharp/generator/Microsoft.Generator.CSharp/src/PostProcessing/GeneratedCodeWorkspace.cs
+31 −2 packages/http-client-csharp/generator/Microsoft.Generator.CSharp/src/Primitives/CSharpType.cs
+51 −21 packages/http-client-csharp/generator/Microsoft.Generator.CSharp/src/Providers/ModelProvider.cs
+107 −24 packages/http-client-csharp/generator/Microsoft.Generator.CSharp/src/Providers/NamedTypeSymbolProvider.cs
+25 −14 packages/http-client-csharp/generator/Microsoft.Generator.CSharp/test/Helpers.cs
+20 −0 packages/http-client-csharp/generator/Microsoft.Generator.CSharp/test/Primitives/CSharpTypeTests.cs
+62 −9 ...client-csharp/generator/Microsoft.Generator.CSharp/test/Providers/ModelProviders/ModelCustomizationTests.cs
+7 −0 ...arp/test/Providers/ModelProviders/TestData/ModelCustomizationTests/CanChangeAccessibility/MockInputModel.cs
+11 −0 ...CSharp/test/Providers/ModelProviders/TestData/ModelCustomizationTests/CanChangeModelName/CustomizedModel.cs
+11 −0 .../ModelProviders/TestData/ModelCustomizationTests/CanChangeModelNameAndToStructAtSameTime/CustomizedModel.cs
+13 −0 .../Providers/ModelProviders/TestData/ModelCustomizationTests/CanChangePropertyAccessibility/MockInputModel.cs
+13 −0 ...harp/test/Providers/ModelProviders/TestData/ModelCustomizationTests/CanChangePropertyName/MockInputModel.cs
+13 −0 ...harp/test/Providers/ModelProviders/TestData/ModelCustomizationTests/CanChangePropertyType/MockInputModel.cs
+5 −0 ...r.CSharp/test/Providers/ModelProviders/TestData/ModelCustomizationTests/CanChangeToStruct/MockInputModel.cs
+54 −0 ...nt-csharp/generator/Microsoft.Generator.CSharp/test/Providers/NamedTypeSymbolProviders/CompilationHelper.cs
+93 −0 ...lient-csharp/generator/Microsoft.Generator.CSharp/test/Providers/NamedTypeSymbolProviders/InterfaceTests.cs
+9 −21 ...enerator/Microsoft.Generator.CSharp/test/Providers/NamedTypeSymbolProviders/NamedTypeSymbolProviderTests.cs
+110 −0 ...-client-csharp/generator/Microsoft.Generator.CSharp/test/Providers/NamedTypeSymbolProviders/XmlDocsTests.cs
+0 −25 ...ft.Generator.CSharp/test/Providers/TestData/ModelCustomizationTests/TestCustomization_CanChangeModelName.cs
+0 −27 ....CSharp/test/Providers/TestData/ModelCustomizationTests/TestCustomization_CanChangePropertyAccessibility.cs
+0 −27 ...Generator.CSharp/test/Providers/TestData/ModelCustomizationTests/TestCustomization_CanChangePropertyName.cs
+0 −27 ...Generator.CSharp/test/Providers/TestData/ModelCustomizationTests/TestCustomization_CanChangePropertyType.cs
+0 −0 ...p-client-csharp/generator/Microsoft.Generator.CSharp/test/TestData/ConfigurationTests/DisableDocsForType.cs
+20 −5 packages/http-client-csharp/generator/Microsoft.Generator.CSharp/test/TestHelpers/MockHelpers.cs
+14 −1 packages/http-client-java/emitter/src/code-model-builder.ts
+6 −1 packages/http-client-java/emitter/src/models.ts
+4 −2 ...erator-core/src/main/java/com/microsoft/typespec/http/client/generator/core/mapper/ServiceClientMapper.java
+11 −11 packages/http-client-java/generator/http-client-generator-test/package.json
+287 −0 ...ttp-client-java/generator/http-client-generator-test/src/main/java/com/cadl/naming/NamingClientBuilder.java
+273 −0 ...t-java/generator/http-client-generator-test/src/main/java/com/cadl/naming/implementation/NamingOpsImpl.java
+3 −3 ...nt-java/generator/http-client-generator-test/src/main/java/com/cadl/naming/implementation/package-info.java
+11 −0 ...ttp-client-java/generator/http-client-generator-test/src/main/java/com/cadl/naming/models/package-info.java
+11 −0 packages/http-client-java/generator/http-client-generator-test/src/main/java/com/cadl/naming/package-info.java
+6 −8 ...tor/http-client-generator-test/src/main/java/com/parameters/bodyoptionality/BodyOptionalityAsyncClient.java
+6 −8 ...enerator/http-client-generator-test/src/main/java/com/parameters/bodyoptionality/BodyOptionalityClient.java
+11 −16 ...t-generator-test/src/main/java/com/parameters/bodyoptionality/implementation/BodyOptionalityClientImpl.java
+0 −83 ...erator-test/src/main/java/com/parameters/bodyoptionality/implementation/models/RequiredImplicitRequest.java
+6 −7 ...-client-java/generator/http-client-generator-test/src/main/java/com/parameters/spread/ModelAsyncClient.java
+6 −8 .../http-client-java/generator/http-client-generator-test/src/main/java/com/parameters/spread/ModelClient.java
+11 −14 ...ava/generator/http-client-generator-test/src/main/java/com/parameters/spread/implementation/ModelsImpl.java
+0 −83 ...t-generator-test/src/main/java/com/parameters/spread/implementation/models/SpreadAsRequestBodyRequest1.java
+0 −1 ...r/http-client-generator-test/src/main/resources/META-INF/parameters-bodyoptionality_apiview_properties.json
+0 −1 .../generator/http-client-generator-test/src/main/resources/META-INF/parameters-spread_apiview_properties.json
+2 −0 packages/http-client-java/generator/http-client-generator-test/src/main/resources/cadl-naming.properties
+393 −850 packages/http-client-java/package-lock.json
+27 −27 packages/http-client-java/package.json
+7 −0 packages/versioning/CHANGELOG.md
+1 −1 packages/versioning/package.json
+4 −2 packages/versioning/src/validate.ts
+25 −0 packages/versioning/test/versioning.test.ts
1 change: 0 additions & 1 deletion eng/feeds/arm-canonical/tspconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ options:
emitter-output-dir: "{project-root}/.."
azure-resource-provider-folder: "resource-manager"
output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/openapi.json"
examples-directory: "{project-root}/examples"
"@azure-tools/typespec-autorest-canonical":
emitter-output-dir: "{project-root}/.."
azure-resource-provider-folder: "resource-manager"
Expand Down
1 change: 0 additions & 1 deletion eng/feeds/arm/tspconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ options:
emitter-output-dir: "{project-root}/.."
azure-resource-provider-folder: "resource-manager"
output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/openapi.json"
examples-directory: "{project-root}/examples"
linter:
extends:
- "@azure-tools/typespec-azure-rulesets/resource-manager"
1 change: 0 additions & 1 deletion eng/feeds/arm/tspconfig_stand_alone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ options:
use-read-only-status-schema: true
azure-resource-provider-folder: "resource-manager"
output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/openapi.json"
examples-directory: "{project-root}/examples"
linter:
extends:
- "@azure-tools/typespec-azure-rulesets/resource-manager"
1 change: 0 additions & 1 deletion eng/feeds/data-plane/tspconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ options:
"@azure-tools/typespec-autorest":
azure-resource-provider-folder: "data-plane"
emitter-output-dir: "{project-root}/.."
examples-directory: "{project-root}/examples"
output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/openapi.json"
"@azure-tools/typespec-python":
package-dir: "{{#normalizePackageName}}{{parameters.ServiceNamespace}}{{/normalizePackageName}}"
Expand Down
1 change: 0 additions & 1 deletion eng/feeds/data-plane/tspconfig_stand_alone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ options:
"@azure-tools/typespec-autorest":
azure-resource-provider-folder: "data-plane"
## emitter-output-dir: "{project-root}/.."
examples-directory: "{project-root}/examples"
output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/openapi.json"
"@azure-tools/typespec-python":
package-dir: "{{#normalizePackageName}}{{parameters.ServiceNamespace}}{{/normalizePackageName}}"
Expand Down
2 changes: 1 addition & 1 deletion packages/e2e-tests/cadl-ranch-specs/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@azure-tools/typespec-e2e-cadl-ranch-specs",
"dependencies": {
"@azure-tools/cadl-ranch-specs": "0.37.1"
"@azure-tools/cadl-ranch-specs": "0.37.2"
},
"type": "module",
"private": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -537,10 +537,9 @@ model ManagementGroupNameParameter {
@added(Versions.v4)
model ScopeParameter {
/** The scope at which the operation is performed. */
@path
@path(#{ allowReserved: true })
@segment("scope")
@minLength(1)
@extension("x-ms-skip-url-encoding", true)
scope: string;
}

Expand Down
3 changes: 1 addition & 2 deletions packages/typespec-azure-resource-manager/lib/parameters.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,8 @@ model ArmLocationResource<BaseType extends
*/
@doc("The default resourceUri parameter type.")
model ResourceUriParameter {
@path
@path(#{ allowReserved: true })
@doc("The fully qualified Azure Resource manager identifier of the resource.")
@extension("x-ms-skip-url-encoding", true)
@resourceParameterBaseFor([ResourceHome.Extension])
resourceUri: string;
}
Expand Down

0 comments on commit 865e7f0

Please sign in to comment.