Skip to content

Commit

Permalink
tsp, version 0.7.4 (Azure#2178)
Browse files Browse the repository at this point in the history
  • Loading branch information
weidongxu-microsoft authored Jun 6, 2023
1 parent fcc7fcc commit e3e5dfc
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 10 deletions.
2 changes: 1 addition & 1 deletion fluent-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-identity</artifactId>
<version>1.9.0</version>
<version>1.9.1</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import com.azure.core.http.HttpClient;
import com.azure.core.http.HttpPipeline;
import com.azure.core.http.HttpPipelineBuilder;
import com.azure.core.http.policy.CookiePolicy;
import com.azure.core.http.policy.HttpLogDetailLevel;
import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpLoggingPolicy;
Expand Down Expand Up @@ -103,7 +102,7 @@ public void testFlattenedModel() throws IOException {
@Test
public void testManagementClient() {
StorageManagementClient storageManagementClient = new StorageManagementClientBuilder()
.pipeline(new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy()).build())
.pipeline(new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build())
.endpoint(AzureEnvironment.AZURE.getResourceManagerEndpoint())
.subscriptionId(MOCK_SUBSCRIPTION_ID)
.buildClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public enum Dependency {
AZURE_CORE_MANAGEMENT("com.azure", "azure-core-management", "1.11.2"),
AZURE_CORE_HTTP_NETTY("com.azure", "azure-core-http-netty", "1.13.4"),
AZURE_CORE_TEST("com.azure", "azure-core-test", "1.18.0"),
AZURE_IDENTITY("com.azure", "azure-identity", "1.9.0"),
AZURE_IDENTITY("com.azure", "azure-identity", "1.9.1"),
AZURE_CORE_EXPERIMENTAL("com.azure", "azure-core-experimental", "1.0.0-beta.40"),

// external
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ com.azure:azure-core-http-netty;1.13.4;1.13.4
com.azure:azure-core-management;1.11.2;1.11.2
com.azure:azure-core-test;1.18.0;1.18.0

com.azure:azure-identity;1.9.0;1.9.0
com.azure:azure-identity;1.9.1;1.9.1
com.azure:azure-json;1.0.1;1.0.1
2 changes: 1 addition & 1 deletion typespec-extension/changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Release History

## 0.7.4 (Unreleased)
## 0.7.4 (2023-06-06)

Compatible with compiler 0.44.

Expand Down
2 changes: 1 addition & 1 deletion 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.7.3",
"version": "0.7.4",
"description": "TypeSpec library for emitting Java client from the TypeSpec REST protocol binding",
"keywords": [
"TypeSpec"
Expand Down
4 changes: 3 additions & 1 deletion typespec-extension/src/code-model-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1767,8 +1767,10 @@ export class CodeModelBuilder {
case "uuid":
case "eTag":
return this.processStringSchema(type, nameHint);
default:
this.logWarning(`Unrecognized string format: '${format}'.`);
return this.processStringSchema(type, nameHint);
}
throw new Error(`Unrecognized string format: '${format}'.`);
}

private processUnionSchema(type: Union, name: string): Schema {
Expand Down
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/openapi": ">=0.44.0 <1.0.0",
"@azure-tools/typespec-autorest": ">=0.30.0 <1.0.0",
"@azure-tools/cadl-ranch-specs": "~0.15.0",
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.7.3.tgz"
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.7.4.tgz"
},
"devDependencies": {
"@typespec/prettier-plugin-typespec": ">=0.44.0 <1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion typespec-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-identity</artifactId>
<version>1.9.0</version>
<version>1.9.1</version>
</dependency>
<dependency>
<groupId>com.azure</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
package com._specs_.azure.core.basic;

import com._specs_.azure.core.basic.models.User;
import com.azure.core.http.HttpClient;
import com.azure.core.http.rest.PagedFlux;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.test.http.AssertingHttpClientBuilder;
import com.azure.core.util.BinaryData;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Disabled;
Expand All @@ -24,9 +26,11 @@
public class CoreTests {

private BasicAsyncClient client = new BasicClientBuilder()
.httpClient(new AssertingHttpClientBuilder(HttpClient.createDefault()).assertAsync().build())
.buildAsyncClient();

private BasicClient syncClient = new BasicClientBuilder()
.httpClient(new AssertingHttpClientBuilder(HttpClient.createDefault()).assertSync().build())
.buildClient();

@Test
Expand Down

0 comments on commit e3e5dfc

Please sign in to comment.