Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core
Submodule core updated 25 files
+7 −0 .chronus/changes/fix-vscode-e2e-test-fail-2025-8-5-13-18-41.md
+3 −2 .github/prompts/http-client-java-development.md
+56 −67 ...t-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Providers/MrwSerializationTypeDefinition.cs
+2 −2 packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/ScmTypeFactory.cs
+1 −1 packages/http-client-java/generator/http-client-generator-test/package.json
+19 −19 ...-generator-test/src/main/java/azure/clientgenerator/core/hierarchybuilding/AnimalOperationsAsyncClient.java
+21 −19 ...lient-generator-test/src/main/java/azure/clientgenerator/core/hierarchybuilding/AnimalOperationsClient.java
+103 −0 ...ent-generator-test/src/main/java/azure/clientgenerator/core/hierarchybuilding/DogOperationsAsyncClient.java
+100 −0 ...p-client-generator-test/src/main/java/azure/clientgenerator/core/hierarchybuilding/DogOperationsClient.java
+56 −9 ...nerator-test/src/main/java/azure/clientgenerator/core/hierarchybuilding/HierarchyBuildingClientBuilder.java
+162 −0 ...ent-generator-test/src/main/java/azure/clientgenerator/core/hierarchybuilding/PetOperationsAsyncClient.java
+158 −0 ...p-client-generator-test/src/main/java/azure/clientgenerator/core/hierarchybuilding/PetOperationsClient.java
+263 −0 ...or-test/src/main/java/azure/clientgenerator/core/hierarchybuilding/implementation/AnimalOperationsImpl.java
+169 −0 ...rator-test/src/main/java/azure/clientgenerator/core/hierarchybuilding/implementation/DogOperationsImpl.java
+43 −232 .../src/main/java/azure/clientgenerator/core/hierarchybuilding/implementation/HierarchyBuildingClientImpl.java
+269 −0 ...rator-test/src/main/java/azure/clientgenerator/core/hierarchybuilding/implementation/PetOperationsImpl.java
+26 −10 ...rator-test/src/main/resources/META-INF/azure-clientgenerator-core-hierarchybuilding_apiview_properties.json
+1 −1 ...lient-generator-test/src/main/resources/META-INF/azure-clientgenerator-core-hierarchybuilding_metadata.json
+55 −3 ...lient-generator-test/src/test/java/azure/clientgenerator/core/hierarchybuilding/HierarchyBuildingTests.java
+29 −5 ...t/src/test/java/azure/clientgenerator/core/hierarchybuilding/generated/HierarchyBuildingClientTestBase.java
+4 −4 packages/http-client-java/package-lock.json
+1 −1 packages/http-client-java/package.json
+1 −1 packages/typespec-vscode/package.json
+1 −2 packages/typespec-vscode/test/extension/common/common-steps.ts
+1 −1 packages/typespec-vscode/test/extension/create-typespec.test.ts
50 changes: 25 additions & 25 deletions typespec-extension/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions typespec-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"@azure-tools/typespec-liftr-base": "0.8.0",
"@types/js-yaml": "~4.0.9",
"@types/lodash": "~4.17.20",
"@types/node": "~24.2.0",
"@types/node": "~24.2.1",
"@typescript-eslint/eslint-plugin": "~8.39.0",
"@typescript-eslint/parser": "~8.39.0",
"@typespec/compiler": "1.3.0",
Expand All @@ -91,7 +91,7 @@
"@vitest/coverage-v8": "^3.2.4",
"@vitest/ui": "^3.2.4",
"c8": "~10.1.3",
"eslint": "~9.32.0",
"eslint": "~9.33.0",
"eslint-plugin-deprecation": "~3.0.0",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-unicorn": "^60.0.0",
Expand All @@ -102,6 +102,6 @@
"vitest": "^3.2.4"
},
"overrides": {
"eslint": "~9.32.0"
"eslint": "~9.33.0"
}
}
2 changes: 1 addition & 1 deletion typespec-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@typespec/spec-api": "0.1.0-alpha.8",
"@typespec/spector": "0.1.0-alpha.17",
"@typespec/http-specs": "0.1.0-alpha.25",
"@azure-tools/azure-http-specs": "0.1.0-alpha.25",
"@azure-tools/azure-http-specs": "0.1.0-alpha.26",
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.32.0.tgz"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

package azure.clientgenerator.core.hierarchybuilding;

import azure.clientgenerator.core.hierarchybuilding.implementation.HierarchyBuildingClientImpl;
import azure.clientgenerator.core.hierarchybuilding.implementation.AnimalOperationsImpl;
import azure.clientgenerator.core.hierarchybuilding.models.Animal;
import com.azure.core.annotation.Generated;
import com.azure.core.annotation.ReturnType;
Expand All @@ -24,22 +24,22 @@
* Initializes a new instance of the asynchronous HierarchyBuildingClient type.
*/
@ServiceClient(builder = HierarchyBuildingClientBuilder.class, isAsync = true)
public final class HierarchyBuildingAsyncClient {
public final class AnimalOperationsAsyncClient {
@Generated
private final HierarchyBuildingClientImpl serviceClient;
private final AnimalOperationsImpl serviceClient;

/**
* Initializes an instance of HierarchyBuildingAsyncClient class.
* Initializes an instance of AnimalOperationsAsyncClient class.
*
* @param serviceClient the service client implementation.
*/
@Generated
HierarchyBuildingAsyncClient(HierarchyBuildingClientImpl serviceClient) {
AnimalOperationsAsyncClient(AnimalOperationsImpl serviceClient) {
this.serviceClient = serviceClient;
}

/**
* Update a pet.
* Update a pet as an animal.
* <p><strong>Request Body Schema</strong></p>
*
* <pre>
Expand Down Expand Up @@ -72,12 +72,12 @@ public final class HierarchyBuildingAsyncClient {
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono<Response<BinaryData>> updatePetWithResponse(BinaryData animal, RequestOptions requestOptions) {
return this.serviceClient.updatePetWithResponseAsync(animal, requestOptions);
public Mono<Response<BinaryData>> updatePetAsAnimalWithResponse(BinaryData animal, RequestOptions requestOptions) {
return this.serviceClient.updatePetAsAnimalWithResponseAsync(animal, requestOptions);
}

/**
* Update a dog.
* Update a dog as an animal.
* <p><strong>Request Body Schema</strong></p>
*
* <pre>
Expand Down Expand Up @@ -110,12 +110,12 @@ public Mono<Response<BinaryData>> updatePetWithResponse(BinaryData animal, Reque
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono<Response<BinaryData>> updateDogWithResponse(BinaryData animal, RequestOptions requestOptions) {
return this.serviceClient.updateDogWithResponseAsync(animal, requestOptions);
public Mono<Response<BinaryData>> updateDogAsAnimalWithResponse(BinaryData animal, RequestOptions requestOptions) {
return this.serviceClient.updateDogAsAnimalWithResponseAsync(animal, requestOptions);
}

/**
* Update a pet.
* Update a pet as an animal.
*
* @param animal The animal parameter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
Expand All @@ -128,15 +128,15 @@ public Mono<Response<BinaryData>> updateDogWithResponse(BinaryData animal, Reque
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono<Animal> updatePet(Animal animal) {
// Generated convenience method for updatePetWithResponse
public Mono<Animal> updatePetAsAnimal(Animal animal) {
// Generated convenience method for updatePetAsAnimalWithResponse
RequestOptions requestOptions = new RequestOptions();
return updatePetWithResponse(BinaryData.fromObject(animal), requestOptions).flatMap(FluxUtil::toMono)
return updatePetAsAnimalWithResponse(BinaryData.fromObject(animal), requestOptions).flatMap(FluxUtil::toMono)
.map(protocolMethodData -> protocolMethodData.toObject(Animal.class));
}

/**
* Update a dog.
* Update a dog as an animal.
*
* @param animal The animal parameter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
Expand All @@ -149,10 +149,10 @@ public Mono<Animal> updatePet(Animal animal) {
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono<Animal> updateDog(Animal animal) {
// Generated convenience method for updateDogWithResponse
public Mono<Animal> updateDogAsAnimal(Animal animal) {
// Generated convenience method for updateDogAsAnimalWithResponse
RequestOptions requestOptions = new RequestOptions();
return updateDogWithResponse(BinaryData.fromObject(animal), requestOptions).flatMap(FluxUtil::toMono)
return updateDogAsAnimalWithResponse(BinaryData.fromObject(animal), requestOptions).flatMap(FluxUtil::toMono)
.map(protocolMethodData -> protocolMethodData.toObject(Animal.class));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

package azure.clientgenerator.core.hierarchybuilding;

import azure.clientgenerator.core.hierarchybuilding.implementation.HierarchyBuildingClientImpl;
import azure.clientgenerator.core.hierarchybuilding.implementation.AnimalOperationsImpl;
import azure.clientgenerator.core.hierarchybuilding.models.Animal;
import com.azure.core.annotation.Generated;
import com.azure.core.annotation.ReturnType;
Expand All @@ -22,22 +22,22 @@
* Initializes a new instance of the synchronous HierarchyBuildingClient type.
*/
@ServiceClient(builder = HierarchyBuildingClientBuilder.class)
public final class HierarchyBuildingClient {
public final class AnimalOperationsClient {
@Generated
private final HierarchyBuildingClientImpl serviceClient;
private final AnimalOperationsImpl serviceClient;

/**
* Initializes an instance of HierarchyBuildingClient class.
* Initializes an instance of AnimalOperationsClient class.
*
* @param serviceClient the service client implementation.
*/
@Generated
HierarchyBuildingClient(HierarchyBuildingClientImpl serviceClient) {
AnimalOperationsClient(AnimalOperationsImpl serviceClient) {
this.serviceClient = serviceClient;
}

/**
* Update a pet.
* Update a pet as an animal.
* <p><strong>Request Body Schema</strong></p>
*
* <pre>
Expand Down Expand Up @@ -70,12 +70,12 @@ public final class HierarchyBuildingClient {
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
public Response<BinaryData> updatePetWithResponse(BinaryData animal, RequestOptions requestOptions) {
return this.serviceClient.updatePetWithResponse(animal, requestOptions);
public Response<BinaryData> updatePetAsAnimalWithResponse(BinaryData animal, RequestOptions requestOptions) {
return this.serviceClient.updatePetAsAnimalWithResponse(animal, requestOptions);
}

/**
* Update a dog.
* Update a dog as an animal.
* <p><strong>Request Body Schema</strong></p>
*
* <pre>
Expand Down Expand Up @@ -108,12 +108,12 @@ public Response<BinaryData> updatePetWithResponse(BinaryData animal, RequestOpti
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
public Response<BinaryData> updateDogWithResponse(BinaryData animal, RequestOptions requestOptions) {
return this.serviceClient.updateDogWithResponse(animal, requestOptions);
public Response<BinaryData> updateDogAsAnimalWithResponse(BinaryData animal, RequestOptions requestOptions) {
return this.serviceClient.updateDogAsAnimalWithResponse(animal, requestOptions);
}

/**
* Update a pet.
* Update a pet as an animal.
*
* @param animal The animal parameter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
Expand All @@ -126,14 +126,15 @@ public Response<BinaryData> updateDogWithResponse(BinaryData animal, RequestOpti
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
public Animal updatePet(Animal animal) {
// Generated convenience method for updatePetWithResponse
public Animal updatePetAsAnimal(Animal animal) {
// Generated convenience method for updatePetAsAnimalWithResponse
RequestOptions requestOptions = new RequestOptions();
return updatePetWithResponse(BinaryData.fromObject(animal), requestOptions).getValue().toObject(Animal.class);
return updatePetAsAnimalWithResponse(BinaryData.fromObject(animal), requestOptions).getValue()
.toObject(Animal.class);
}

/**
* Update a dog.
* Update a dog as an animal.
*
* @param animal The animal parameter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
Expand All @@ -146,9 +147,10 @@ public Animal updatePet(Animal animal) {
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
public Animal updateDog(Animal animal) {
// Generated convenience method for updateDogWithResponse
public Animal updateDogAsAnimal(Animal animal) {
// Generated convenience method for updateDogAsAnimalWithResponse
RequestOptions requestOptions = new RequestOptions();
return updateDogWithResponse(BinaryData.fromObject(animal), requestOptions).getValue().toObject(Animal.class);
return updateDogAsAnimalWithResponse(BinaryData.fromObject(animal), requestOptions).getValue()
.toObject(Animal.class);
}
}
Loading