Skip to content

Commit

Permalink
fix jackson-databind dep type (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesdaniels authored Aug 9, 2024
1 parent 8266142 commit 3557252
Show file tree
Hide file tree
Showing 87 changed files with 1,544 additions and 1,557 deletions.
12 changes: 6 additions & 6 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ id: 47e8e950-a454-4ebb-9f78-86fda7dfa0c2
management:
docChecksum: a34bd1c885aa42eb3175940494581f67
docVersion: 0.2.0
speakeasyVersion: 1.354.0
generationVersion: 2.386.2
releaseVersion: 1.5.3
configChecksum: 64798e8dfb7f95ceef7c914140804cea
speakeasyVersion: 1.360.0
generationVersion: 2.392.0
releaseVersion: 1.6.0
configChecksum: 04057022610c9a5aee37164daac7ba9d
repoURL: https://github.com/StyraInc/opa-java.git
published: true
features:
java:
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.1
core: 3.27.0
core: 3.28.1
examples: 2.81.3
flattening: 2.81.1
globalSecurity: 2.82.6
globalSecurity: 2.82.7
globalSecurityCallbacks: 0.1.0
globalServerURLs: 2.82.1
sdkHooks: 0.1.0
Expand Down
3 changes: 2 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
java:
version: 1.5.3
version: 1.6.0
additionalDependencies:
- testImplementation:org.junit.jupiter:junit-jupiter-api:5.8.2
- runtimeOnly:org.junit.jupiter:junit-jupiter-engine:5.8.2
Expand All @@ -22,6 +22,7 @@ java:
- implementation:com.fasterxml.jackson.core:jackson-annotations:2.17.0
- api:com.fasterxml.jackson.core:jackson-core:2.17.0
- implementation:org.apache.httpcomponents:httpcore:4.4.16
- api:com.fasterxml.jackson.core:jackson-databind:2.17.0
additionalPlugins:
- id("java")
- id("checkstyle")
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
speakeasyVersion: 1.354.0
speakeasyVersion: 1.360.0
sources:
openapi:
sourceNamespace: openapi
sourceRevisionDigest: sha256:cdedb966379a4fcac12704efa03907a7529e5fe7d9497ce97571efe8bb06194d
sourceBlobDigest: sha256:0a582b34b60d45468d7211a21ded7a26384d8a6a8d07c7277bd34e3b37b3674a
sourceRevisionDigest: sha256:81c3a5edacaf5a325d464a84f952cb2e2647ffdc1d354b7a1077772cd0f5ce1a
sourceBlobDigest: sha256:443ed43ddde1813b773d4c9ef167a4be2fb41e568b801e43790c5b41bf80386b
tags:
- latest
targets:
opa:
source: openapi
sourceNamespace: openapi
sourceRevisionDigest: sha256:cdedb966379a4fcac12704efa03907a7529e5fe7d9497ce97571efe8bb06194d
sourceBlobDigest: sha256:0a582b34b60d45468d7211a21ded7a26384d8a6a8d07c7277bd34e3b37b3674a
sourceRevisionDigest: sha256:81c3a5edacaf5a325d464a84f952cb2e2647ffdc1d354b7a1077772cd0f5ce1a
sourceBlobDigest: sha256:443ed43ddde1813b773d4c9ef167a4be2fb41e568b801e43790c5b41bf80386b
outLocation: /Users/cad/f/src/opa-java
workflow:
workflowVersion: 1.0.0
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# OPA Java SDK Changelog

## v1.6.0

* Fixed omission of jackson-databind dependency type change to `api`, which was supposed to go out with 1.5.3.

## v1.5.3

* Marked jackson-databind as an `api` dependency in addition to jackson-core.
Expand Down
140 changes: 54 additions & 86 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,12 @@ public class App {
package hello.world;

import com.styra.opa.openapi.OpaApiClient;
import com.styra.opa.openapi.models.operations.*;
import com.styra.opa.openapi.models.shared.*;
import com.styra.opa.openapi.utils.EventStream;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.LocalDate;
import java.time.OffsetDateTime;
import java.util.Optional;
import org.openapitools.jackson.nullable.JsonNullable;
import static java.util.Map.entry;
import com.styra.opa.openapi.models.errors.SDKError;
import com.styra.opa.openapi.models.operations.ExecuteDefaultPolicyWithInputResponse;
import com.styra.opa.openapi.models.shared.GzipAcceptEncoding;
import com.styra.opa.openapi.models.shared.Input;
import com.styra.opa.openapi.models.shared.Security;
import java.lang.Exception;

public class Application {

Expand All @@ -128,7 +123,7 @@ public class Application {
} catch (com.styra.opa.openapi.models.errors.ServerError e) {
// handle exception
throw e;
} catch (com.styra.opa.openapi.models.errors.SDKError e) {
} catch (SDKError e) {
// handle exception
throw e;
} catch (Exception e) {
Expand All @@ -146,17 +141,13 @@ public class Application {
package hello.world;

import com.styra.opa.openapi.OpaApiClient;
import com.styra.opa.openapi.models.operations.*;
import com.styra.opa.openapi.models.shared.*;
import com.styra.opa.openapi.utils.EventStream;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.LocalDate;
import java.time.OffsetDateTime;
import java.util.Optional;
import org.openapitools.jackson.nullable.JsonNullable;
import static java.util.Map.entry;
import com.styra.opa.openapi.models.errors.SDKError;
import com.styra.opa.openapi.models.operations.ExecutePolicyWithInputRequest;
import com.styra.opa.openapi.models.operations.ExecutePolicyWithInputRequestBody;
import com.styra.opa.openapi.models.operations.ExecutePolicyWithInputResponse;
import com.styra.opa.openapi.models.shared.Input;
import com.styra.opa.openapi.models.shared.Security;
import java.lang.Exception;

public class Application {

Expand Down Expand Up @@ -188,7 +179,7 @@ public class Application {
} catch (com.styra.opa.openapi.models.errors.ServerError e) {
// handle exception
throw e;
} catch (com.styra.opa.openapi.models.errors.SDKError e) {
} catch (SDKError e) {
// handle exception
throw e;
} catch (Exception e) {
Expand All @@ -206,17 +197,14 @@ public class Application {
package hello.world;

import com.styra.opa.openapi.OpaApiClient;
import com.styra.opa.openapi.models.operations.*;
import com.styra.opa.openapi.models.shared.*;
import com.styra.opa.openapi.utils.EventStream;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.LocalDate;
import java.time.OffsetDateTime;
import java.util.Optional;
import org.openapitools.jackson.nullable.JsonNullable;
import static java.util.Map.entry;
import com.styra.opa.openapi.models.errors.SDKError;
import com.styra.opa.openapi.models.operations.ExecuteBatchPolicyWithInputRequest;
import com.styra.opa.openapi.models.operations.ExecuteBatchPolicyWithInputRequestBody;
import com.styra.opa.openapi.models.operations.ExecuteBatchPolicyWithInputResponse;
import com.styra.opa.openapi.models.shared.Input;
import com.styra.opa.openapi.models.shared.Security;
import java.lang.Exception;
import java.util.Map;

public class Application {

Expand All @@ -231,8 +219,8 @@ public class Application {
ExecuteBatchPolicyWithInputRequest req = ExecuteBatchPolicyWithInputRequest.builder()
.path("app/rbac")
.requestBody(ExecuteBatchPolicyWithInputRequestBody.builder()
.inputs(java.util.Map.ofEntries(
entry("key", Input.of("<value>"))))
.inputs(Map.ofEntries(
Map.entry("key", Input.of("<value>"))))
.build())
.build();

Expand All @@ -249,7 +237,7 @@ public class Application {
} catch (com.styra.opa.openapi.models.errors.BatchServerError e) {
// handle exception
throw e;
} catch (com.styra.opa.openapi.models.errors.SDKError e) {
} catch (SDKError e) {
// handle exception
throw e;
} catch (Exception e) {
Expand Down Expand Up @@ -291,17 +279,12 @@ You can override the default server globally by passing a server index to the `s
package hello.world;

import com.styra.opa.openapi.OpaApiClient;
import com.styra.opa.openapi.models.operations.*;
import com.styra.opa.openapi.models.shared.*;
import com.styra.opa.openapi.utils.EventStream;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.LocalDate;
import java.time.OffsetDateTime;
import java.util.Optional;
import org.openapitools.jackson.nullable.JsonNullable;
import static java.util.Map.entry;
import com.styra.opa.openapi.models.errors.SDKError;
import com.styra.opa.openapi.models.operations.ExecuteDefaultPolicyWithInputResponse;
import com.styra.opa.openapi.models.shared.GzipAcceptEncoding;
import com.styra.opa.openapi.models.shared.Input;
import com.styra.opa.openapi.models.shared.Security;
import java.lang.Exception;

public class Application {

Expand Down Expand Up @@ -329,7 +312,7 @@ public class Application {
} catch (com.styra.opa.openapi.models.errors.ServerError e) {
// handle exception
throw e;
} catch (com.styra.opa.openapi.models.errors.SDKError e) {
} catch (SDKError e) {
// handle exception
throw e;
} catch (Exception e) {
Expand All @@ -349,17 +332,12 @@ The default server can also be overridden globally by passing a URL to the `serv
package hello.world;

import com.styra.opa.openapi.OpaApiClient;
import com.styra.opa.openapi.models.operations.*;
import com.styra.opa.openapi.models.shared.*;
import com.styra.opa.openapi.utils.EventStream;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.LocalDate;
import java.time.OffsetDateTime;
import java.util.Optional;
import org.openapitools.jackson.nullable.JsonNullable;
import static java.util.Map.entry;
import com.styra.opa.openapi.models.errors.SDKError;
import com.styra.opa.openapi.models.operations.ExecuteDefaultPolicyWithInputResponse;
import com.styra.opa.openapi.models.shared.GzipAcceptEncoding;
import com.styra.opa.openapi.models.shared.Input;
import com.styra.opa.openapi.models.shared.Security;
import java.lang.Exception;

public class Application {

Expand Down Expand Up @@ -387,7 +365,7 @@ public class Application {
} catch (com.styra.opa.openapi.models.errors.ServerError e) {
// handle exception
throw e;
} catch (com.styra.opa.openapi.models.errors.SDKError e) {
} catch (SDKError e) {
// handle exception
throw e;
} catch (Exception e) {
Expand Down Expand Up @@ -417,17 +395,12 @@ Handling errors in this SDK should largely match your expectations. All operati
package hello.world;

import com.styra.opa.openapi.OpaApiClient;
import com.styra.opa.openapi.models.operations.*;
import com.styra.opa.openapi.models.shared.*;
import com.styra.opa.openapi.utils.EventStream;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.LocalDate;
import java.time.OffsetDateTime;
import java.util.Optional;
import org.openapitools.jackson.nullable.JsonNullable;
import static java.util.Map.entry;
import com.styra.opa.openapi.models.errors.SDKError;
import com.styra.opa.openapi.models.operations.ExecuteDefaultPolicyWithInputResponse;
import com.styra.opa.openapi.models.shared.GzipAcceptEncoding;
import com.styra.opa.openapi.models.shared.Input;
import com.styra.opa.openapi.models.shared.Security;
import java.lang.Exception;

public class Application {

Expand All @@ -454,7 +427,7 @@ public class Application {
} catch (com.styra.opa.openapi.models.errors.ServerError e) {
// handle exception
throw e;
} catch (com.styra.opa.openapi.models.errors.SDKError e) {
} catch (SDKError e) {
// handle exception
throw e;
} catch (Exception e) {
Expand Down Expand Up @@ -483,17 +456,12 @@ You can set the security parameters through the `security` builder method when i
package hello.world;

import com.styra.opa.openapi.OpaApiClient;
import com.styra.opa.openapi.models.operations.*;
import com.styra.opa.openapi.models.shared.*;
import com.styra.opa.openapi.utils.EventStream;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.LocalDate;
import java.time.OffsetDateTime;
import java.util.Optional;
import org.openapitools.jackson.nullable.JsonNullable;
import static java.util.Map.entry;
import com.styra.opa.openapi.models.errors.SDKError;
import com.styra.opa.openapi.models.operations.ExecuteDefaultPolicyWithInputResponse;
import com.styra.opa.openapi.models.shared.GzipAcceptEncoding;
import com.styra.opa.openapi.models.shared.Input;
import com.styra.opa.openapi.models.shared.Security;
import java.lang.Exception;

public class Application {

Expand All @@ -520,7 +488,7 @@ public class Application {
} catch (com.styra.opa.openapi.models.errors.ServerError e) {
// handle exception
throw e;
} catch (com.styra.opa.openapi.models.errors.SDKError e) {
} catch (SDKError e) {
// handle exception
throw e;
} catch (Exception e) {
Expand Down
10 changes: 10 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -328,3 +328,13 @@ Based on:
- [java v1.5.3] .
### Releases
- [Maven Central v1.5.3] https://central.sonatype.com/artifact/com.styra.opa/openapi/1.5.3 - .

## 2024-08-09 17:19:00
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.360.0 (2.361.10) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v1.6.0] .
### Releases
- [Maven Central v1.6.0] https://central.sonatype.com/artifact/com.styra.opa/openapi/1.6.0 - .
Loading

0 comments on commit 3557252

Please sign in to comment.