Skip to content

Commit c610bcc

Browse files
authored
Merge branch 'main' into speakeasy-sdk-regen-1732888854
2 parents 2bb0b53 + 1f34597 commit c610bcc

File tree

9 files changed

+109
-121
lines changed

9 files changed

+109
-121
lines changed

.speakeasy/gen.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ management:
55
docVersion: 1.0.0
66
speakeasyVersion: 1.448.2
77
generationVersion: 2.467.4
8-
releaseVersion: 0.2.2
9-
configChecksum: 5f1549ec37f6a6136bb70fe718ece901
8+
releaseVersion: 0.2.5
9+
configChecksum: 8e8f888dff09aeae0a69e9c2ee19e576
1010
repoURL: https://github.com/Benzinga/bz-java-client.git
1111
published: true
1212
features:

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ generation:
1313
oAuth2ClientCredentialsEnabled: false
1414
oAuth2PasswordEnabled: false
1515
java:
16-
version: 0.2.2
16+
version: 0.2.5
1717
additionalDependencies: []
1818
additionalPlugins: []
1919
artifactID: BZClient

.speakeasy/workflow.lock

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
speakeasyVersion: 1.448.2
22
sources:
3-
Benzinga APIs:
3+
BZ_APIs:
44
sourceNamespace: benzinga-ap-is
55
sourceRevisionDigest: sha256:1feb94a2ed74d83d2098884fd22b9717f7f124f445d6779143b5e109c1b3b324
66
sourceBlobDigest: sha256:f5369373dad25b962819006ee495ebe982ec9d00b3934a0d15cdb7d060b829a7
@@ -9,15 +9,14 @@ sources:
99
- 1.0.0
1010
targets:
1111
bzclient:
12-
source: Benzinga APIs
13-
sourceNamespace: benzinga-ap-is
14-
sourceRevisionDigest: sha256:1feb94a2ed74d83d2098884fd22b9717f7f124f445d6779143b5e109c1b3b324
15-
sourceBlobDigest: sha256:f5369373dad25b962819006ee495ebe982ec9d00b3934a0d15cdb7d060b829a7
12+
source: BZ_APIs
13+
codeSamplesNamespace: benzinga-ap-is-java-code-samples
14+
codeSamplesRevisionDigest: sha256:c7d627623805b223fc0751b47ff2b4929506ae3234004beb21f18493dabee5c8
1615
workflow:
1716
workflowVersion: 1.0.0
1817
speakeasyVersion: latest
1918
sources:
20-
Benzinga APIs:
19+
BZ_APIs:
2120
inputs:
2221
- location: openapi.yaml
2322
overlays:
@@ -28,7 +27,7 @@ workflow:
2827
targets:
2928
bzclient:
3029
target: java
31-
source: Benzinga APIs
30+
source: BZ_APIs
3231
publish:
3332
java:
3433
ossrhUsername: $ossrh_username

.speakeasy/workflow.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
workflowVersion: 1.0.0
22
speakeasyVersion: latest
33
sources:
4-
Benzinga APIs:
4+
BZ_APIs:
55
inputs:
66
- location: openapi.yaml
77
overlays:
@@ -12,7 +12,7 @@ sources:
1212
targets:
1313
bzclient:
1414
target: java
15-
source: Benzinga APIs
15+
source: BZ_APIs
1616
publish:
1717
java:
1818
ossrhUsername: $ossrh_username

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ The samples below show how a published SDK artifact is used:
4848

4949
Gradle:
5050
```groovy
51-
implementation 'org.benzinga:BZClient:0.2.2'
51+
implementation 'org.benzinga:BZClient:0.2.5'
5252
```
5353

5454
Maven:
5555
```xml
5656
<dependency>
5757
<groupId>org.benzinga</groupId>
5858
<artifactId>BZClient</artifactId>
59-
<version>0.2.2</version>
59+
<version>0.2.5</version>
6060
</dependency>
6161
```
6262

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ tasks.withType(Javadoc) {
6363
}
6464

6565
group = "org.benzinga"
66-
version = "0.2.2"
66+
version = "0.2.5"
6767

6868
sourcesJar {
6969
archiveBaseName = "BZClient"
@@ -101,7 +101,7 @@ publishing {
101101
maven(MavenPublication) {
102102
groupId = 'org.benzinga'
103103
artifactId = 'BZClient'
104-
version = '0.2.2'
104+
version = '0.2.5'
105105

106106
from components.java
107107

gradlew.bat

Lines changed: 92 additions & 92 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/java/org/benzinga/BZClient/Bzclient.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -357,11 +357,6 @@ public Builder retryConfig(RetryConfig retryConfig) {
357357
this.sdkConfiguration.retryConfig = Optional.of(retryConfig);
358358
return this;
359359
}
360-
// Visible for testing, will be accessed via reflection
361-
void _hooks(org.benzinga.BZClient.utils.Hooks hooks) {
362-
sdkConfiguration.setHooks(hooks);
363-
}
364-
365360
/**
366361
* Builds a new instance of the SDK.
367362
* @return The SDK instance.

src/main/java/org/benzinga/BZClient/SDKConfiguration.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66

77
import java.lang.String;
88
import java.util.Optional;
9-
import org.benzinga.BZClient.hooks.SDKHooks;
109
import org.benzinga.BZClient.utils.HTTPClient;
11-
import org.benzinga.BZClient.utils.Hook.SdkInitData;
1210
import org.benzinga.BZClient.utils.Hooks;
1311
import org.benzinga.BZClient.utils.RetryConfig;
1412

@@ -23,7 +21,7 @@ public Optional<SecuritySource> securitySource() {
2321
public int serverIdx = 0;
2422
private static final String LANGUAGE = "java";
2523
public static final String OPENAPI_DOC_VERSION = "1.0.0";
26-
public static final String SDK_VERSION = "0.2.2";
24+
public static final String SDK_VERSION = "0.2.5";
2725
public static final String GEN_VERSION = "2.467.4";
2826
private static final String BASE_PACKAGE = "org.benzinga.BZClient";
2927
public static final String USER_AGENT =
@@ -49,11 +47,7 @@ public void setHooks(Hooks hooks) {
4947
* Initializes state (for example hooks).
5048
**/
5149
public void initialize() {
52-
SDKHooks.initialize(_hooks);
53-
// apply the sdk init hook immediately
54-
SdkInitData data = _hooks.sdkInit(new SdkInitData(serverUrl, defaultClient));
55-
this.serverUrl = data.baseUrl();
56-
this.defaultClient = data.client();
50+
5751
}
5852

5953

0 commit comments

Comments
 (0)