Skip to content
Draft
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 242 files
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@autorest/java",
"version": "4.1.63",
"version": "4.1.64",
"description": "The Java extension for classic generators in AutoRest.",
"scripts": {
"autorest": "autorest",
Expand Down
6 changes: 6 additions & 0 deletions typespec-extension/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release History

## 0.43.2 (2026-03-20)

Compatible with compiler 1.10.0.

- Updated package dependencies to the latest versions.

## 0.43.1 (2026-03-16)

Compatible with compiler 1.10.0.
Expand Down
193 changes: 108 additions & 85 deletions typespec-extension/package-lock.json

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions typespec-extension/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@azure-tools/typespec-java",
"version": "0.43.1",
"version": "0.43.2",
"description": "TypeSpec library for emitting Java client from the TypeSpec REST protocol binding",
"keywords": [
"TypeSpec"
Expand Down Expand Up @@ -52,8 +52,8 @@
"@azure-tools/typespec-azure-core": ">=0.66.0 <1.0.0",
"@azure-tools/typespec-azure-resource-manager": ">=0.66.0 <1.0.0",
"@azure-tools/typespec-azure-rulesets": ">=0.66.0 <1.0.0",
"@azure-tools/typespec-client-generator-core": ">=0.66.2 <1.0.0",
"@azure-tools/typespec-liftr-base": ">=0.12.0 <1.0.0",
"@azure-tools/typespec-client-generator-core": ">=0.66.3 <1.0.0",
"@azure-tools/typespec-liftr-base": ">=0.13.0 <1.0.0",
"@typespec/compiler": "^1.10.0",
"@typespec/http": "^1.10.0",
"@typespec/openapi": "^1.10.0",
Expand All @@ -73,14 +73,14 @@
"@azure-tools/typespec-azure-core": "0.66.0",
"@azure-tools/typespec-azure-resource-manager": "0.66.0",
"@azure-tools/typespec-azure-rulesets": "0.66.0",
"@azure-tools/typespec-client-generator-core": "0.66.2",
"@azure-tools/typespec-liftr-base": "0.12.0",
"@azure-tools/typespec-client-generator-core": "0.66.3",
"@azure-tools/typespec-liftr-base": "0.13.0",
"@microsoft/api-extractor": "^7.57.7",
"@types/js-yaml": "~4.0.9",
"@types/lodash": "~4.17.24",
"@types/node": "~25.5.0",
"@typescript-eslint/eslint-plugin": "~8.57.0",
"@typescript-eslint/parser": "~8.57.0",
"@typescript-eslint/eslint-plugin": "~8.57.1",
"@typescript-eslint/parser": "~8.57.1",
"@typespec/compiler": "1.10.0",
"@typespec/events": "0.80.0",
"@typespec/http": "1.10.0",
Expand All @@ -102,12 +102,12 @@
"prettier": "~3.8.1",
"rimraf": "~6.1.3",
"typescript": "~5.9.3",
"typescript-eslint": "^8.57.0",
"typescript-eslint": "^8.57.1",
"vitest": "^4.1.0"
},
"overrides": {
"eslint": "~10.0.3",
"@typescript-eslint/eslint-plugin": "~8.57.0",
"@typescript-eslint/parser": "~8.57.0"
"@typescript-eslint/eslint-plugin": "~8.57.1",
"@typescript-eslint/parser": "~8.57.1"
}
}
6 changes: 3 additions & 3 deletions typespec-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@typespec/spector": "0.1.0-alpha.24",
"@typespec/http-specs": "0.1.0-alpha.34",
"@azure-tools/azure-http-specs": "0.1.0-alpha.38",
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.43.1.tgz"
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.43.2.tgz"
},
"devDependencies": {
"@typespec/prettier-plugin-typespec": "^1.10.0",
Expand All @@ -31,10 +31,10 @@
"@typespec/sse": "0.80.0",
"@typespec/streams": "0.80.0",
"@azure-tools/typespec-azure-core": "0.66.0",
"@azure-tools/typespec-client-generator-core": "0.66.2",
"@azure-tools/typespec-client-generator-core": "0.66.3",
"@azure-tools/typespec-azure-resource-manager": "0.66.0",
"@azure-tools/typespec-autorest": "0.66.0",
"@azure-tools/typespec-liftr-base": "0.12.0"
"@azure-tools/typespec-liftr-base": "0.13.0"
},
"private": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import tsptest.discriminatoredgecases.implementation.DiscriminatorEdgeCasesClientImpl;
import tsptest.discriminatoredgecases.models.ChildWithAnotherDiscriminator;
import tsptest.discriminatoredgecases.models.ChildWithRequiredPropertyAsDiscriminator;
import tsptest.discriminatoredgecases.models.ModelWithDiscriminatorNoSubtypes;

/**
* Initializes a new instance of the asynchronous DiscriminatorEdgeCasesClient type.
Expand Down Expand Up @@ -94,6 +95,32 @@ public Mono<Response<BinaryData>> getChildNewDiscrimWithResponse(RequestOptions
return this.serviceClient.getChildNewDiscrimWithResponseAsync(requestOptions);
}

/**
* The getNoSubtypes operation.
* <p><strong>Response Body Schema</strong></p>
*
* <pre>
* {@code
* {
* kind: String (Required)
* name: String (Required)
* }
* }
* </pre>
*
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @return model with along with {@link Response} on successful completion of {@link Mono}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono<Response<BinaryData>> getNoSubtypesWithResponse(RequestOptions requestOptions) {
return this.serviceClient.getNoSubtypesWithResponseAsync(requestOptions);
}

/**
* The getChildRequiredDiscrim operation.
*
Expand Down Expand Up @@ -131,4 +158,23 @@ public Mono<ChildWithAnotherDiscriminator> getChildNewDiscrim() {
return getChildNewDiscrimWithResponse(requestOptions).flatMap(FluxUtil::toMono)
.map(protocolMethodData -> protocolMethodData.toObject(ChildWithAnotherDiscriminator.class));
}

/**
* The getNoSubtypes operation.
*
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return model with on successful completion of {@link Mono}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono<ModelWithDiscriminatorNoSubtypes> getNoSubtypes() {
// Generated convenience method for getNoSubtypesWithResponse
RequestOptions requestOptions = new RequestOptions();
return getNoSubtypesWithResponse(requestOptions).flatMap(FluxUtil::toMono)
.map(protocolMethodData -> protocolMethodData.toObject(ModelWithDiscriminatorNoSubtypes.class));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import tsptest.discriminatoredgecases.implementation.DiscriminatorEdgeCasesClientImpl;
import tsptest.discriminatoredgecases.models.ChildWithAnotherDiscriminator;
import tsptest.discriminatoredgecases.models.ChildWithRequiredPropertyAsDiscriminator;
import tsptest.discriminatoredgecases.models.ModelWithDiscriminatorNoSubtypes;

/**
* Initializes a new instance of the synchronous DiscriminatorEdgeCasesClient type.
Expand Down Expand Up @@ -92,6 +93,32 @@ public Response<BinaryData> getChildNewDiscrimWithResponse(RequestOptions reques
return this.serviceClient.getChildNewDiscrimWithResponse(requestOptions);
}

/**
* The getNoSubtypes operation.
* <p><strong>Response Body Schema</strong></p>
*
* <pre>
* {@code
* {
* kind: String (Required)
* name: String (Required)
* }
* }
* </pre>
*
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @return model with along with {@link Response}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
public Response<BinaryData> getNoSubtypesWithResponse(RequestOptions requestOptions) {
return this.serviceClient.getNoSubtypesWithResponse(requestOptions);
}

/**
* The getChildRequiredDiscrim operation.
*
Expand Down Expand Up @@ -128,4 +155,22 @@ public ChildWithAnotherDiscriminator getChildNewDiscrim() {
RequestOptions requestOptions = new RequestOptions();
return getChildNewDiscrimWithResponse(requestOptions).getValue().toObject(ChildWithAnotherDiscriminator.class);
}

/**
* The getNoSubtypes operation.
*
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return model with.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
public ModelWithDiscriminatorNoSubtypes getNoSubtypes() {
// Generated convenience method for getNoSubtypesWithResponse
RequestOptions requestOptions = new RequestOptions();
return getNoSubtypesWithResponse(requestOptions).getValue().toObject(ModelWithDiscriminatorNoSubtypes.class);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,24 @@ Mono<Response<BinaryData>> getChildNewDiscrim(@HostParam("endpoint") String endp
@UnexpectedResponseExceptionType(HttpResponseException.class)
Response<BinaryData> getChildNewDiscrimSync(@HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context);

@Get("/model/nosubtypes")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
@UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
@UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
Mono<Response<BinaryData>> getNoSubtypes(@HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context);

@Get("/model/nosubtypes")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 })
@UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 })
@UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 })
@UnexpectedResponseExceptionType(HttpResponseException.class)
Response<BinaryData> getNoSubtypesSync(@HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context);
}

/**
Expand Down Expand Up @@ -273,4 +291,57 @@ public Response<BinaryData> getChildNewDiscrimWithResponse(RequestOptions reques
final String accept = "application/json";
return service.getChildNewDiscrimSync(this.getEndpoint(), accept, requestOptions, Context.NONE);
}

/**
* The getNoSubtypes operation.
* <p><strong>Response Body Schema</strong></p>
*
* <pre>
* {@code
* {
* kind: String (Required)
* name: String (Required)
* }
* }
* </pre>
*
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @return model with along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono<Response<BinaryData>> getNoSubtypesWithResponseAsync(RequestOptions requestOptions) {
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.getNoSubtypes(this.getEndpoint(), accept, requestOptions, context));
}

/**
* The getNoSubtypes operation.
* <p><strong>Response Body Schema</strong></p>
*
* <pre>
* {@code
* {
* kind: String (Required)
* name: String (Required)
* }
* }
* </pre>
*
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @return model with along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response<BinaryData> getNoSubtypesWithResponse(RequestOptions requestOptions) {
final String accept = "application/json";
return service.getNoSubtypesSync(this.getEndpoint(), accept, requestOptions, Context.NONE);
}
}
Loading
Loading