Skip to content

Commit 609a79b

Browse files
Implement Support for Batch Evaluation (#73)
Support EOPA's batch evaluation API in the Java client.
1 parent 3557252 commit 609a79b

23 files changed

+1107
-267
lines changed

.speakeasy/gen.lock

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
lockVersion: 2.0.0
22
id: 47e8e950-a454-4ebb-9f78-86fda7dfa0c2
33
management:
4-
docChecksum: a34bd1c885aa42eb3175940494581f67
4+
docChecksum: 54d33facef3aa19f358d15ab44e34141
55
docVersion: 0.2.0
6-
speakeasyVersion: 1.360.0
7-
generationVersion: 2.392.0
8-
releaseVersion: 1.6.0
9-
configChecksum: 04057022610c9a5aee37164daac7ba9d
6+
speakeasyVersion: 1.376.0
7+
generationVersion: 2.402.5
8+
releaseVersion: 1.7.0
9+
configChecksum: 1e364b7503baf8ad2a9aca5d31bbc6b5
1010
repoURL: https://github.com/StyraInc/opa-java.git
1111
published: true
1212
features:
1313
java:
1414
additionalDependencies: 0.1.0
1515
constsAndDefaults: 0.1.1
16-
core: 3.28.1
16+
core: 3.29.4
1717
examples: 2.81.3
1818
flattening: 2.81.1
1919
globalSecurity: 2.82.7
2020
globalSecurityCallbacks: 0.1.0
2121
globalServerURLs: 2.82.1
2222
sdkHooks: 0.1.0
23-
unions: 0.0.4
23+
unions: 0.0.5
2424
generatedFiles:
2525
- src/main/java/com/styra/opa/openapi/SecuritySource.java
2626
- src/main/java/com/styra/opa/openapi/SDKConfiguration.java
@@ -99,8 +99,8 @@ generatedFiles:
9999
- src/main/java/com/styra/opa/openapi/models/shared/GzipContentEncoding.java
100100
- src/main/java/com/styra/opa/openapi/models/shared/Location.java
101101
- src/main/java/com/styra/opa/openapi/models/shared/Errors.java
102-
- src/main/java/com/styra/opa/openapi/models/shared/ServerError.java
103-
- src/main/java/com/styra/opa/openapi/models/shared/ResponsesSuccessfulPolicyResponse.java
102+
- src/main/java/com/styra/opa/openapi/models/shared/ServerErrorWithStatusCode.java
103+
- src/main/java/com/styra/opa/openapi/models/shared/SuccessfulPolicyResponseWithStatusCode.java
104104
- src/main/java/com/styra/opa/openapi/models/shared/Responses.java
105105
- src/main/java/com/styra/opa/openapi/models/shared/BatchMixedResults.java
106106
- src/main/java/com/styra/opa/openapi/models/shared/BatchSuccessfulPolicyEvaluation.java
@@ -136,8 +136,8 @@ generatedFiles:
136136
- docs/models/shared/GzipContentEncoding.md
137137
- docs/models/shared/Location.md
138138
- docs/models/shared/Errors.md
139-
- docs/models/shared/ServerError.md
140-
- docs/models/shared/ResponsesSuccessfulPolicyResponse.md
139+
- docs/models/shared/ServerErrorWithStatusCode.md
140+
- docs/models/shared/SuccessfulPolicyResponseWithStatusCode.md
141141
- docs/models/shared/Responses.md
142142
- docs/models/shared/BatchMixedResults.md
143143
- docs/models/shared/BatchSuccessfulPolicyEvaluation.md

.speakeasy/gen.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ generation:
1212
auth:
1313
oAuth2ClientCredentialsEnabled: false
1414
java:
15-
version: 1.6.0
15+
version: 1.7.0
1616
additionalDependencies:
1717
- testImplementation:org.junit.jupiter:junit-jupiter-api:5.8.2
1818
- runtimeOnly:org.junit.jupiter:junit-jupiter-engine:5.8.2
19-
- testImplementation:org.testcontainers:testcontainers-bom:1.19.7
20-
- testImplementation:org.testcontainers:testcontainers:1.19.7
21-
- testImplementation:org.testcontainers:junit-jupiter:1.19.7
19+
- testImplementation:org.testcontainers:testcontainers-bom:1.20.1
20+
- testImplementation:org.testcontainers:testcontainers:1.20.1
21+
- testImplementation:org.testcontainers:junit-jupiter:1.20.1
2222
- implementation:com.fasterxml.jackson.core:jackson-annotations:2.17.0
2323
- api:com.fasterxml.jackson.core:jackson-core:2.17.0
2424
- implementation:org.apache.httpcomponents:httpcore:4.4.16

.speakeasy/workflow.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
speakeasyVersion: 1.360.0
1+
speakeasyVersion: 1.376.0
22
sources:
33
openapi:
44
sourceNamespace: openapi
5-
sourceRevisionDigest: sha256:81c3a5edacaf5a325d464a84f952cb2e2647ffdc1d354b7a1077772cd0f5ce1a
6-
sourceBlobDigest: sha256:443ed43ddde1813b773d4c9ef167a4be2fb41e568b801e43790c5b41bf80386b
5+
sourceRevisionDigest: sha256:1ee32a806cc62fb2ea0359d3e3bd0a7bfd85e739abe15af4c81944953da8a4a2
6+
sourceBlobDigest: sha256:ba34b5e8162fb661727f5fc9878a8a8862a31609f96a6d73abf9d2c12076d872
77
tags:
88
- latest
99
targets:
1010
opa:
1111
source: openapi
1212
sourceNamespace: openapi
13-
sourceRevisionDigest: sha256:81c3a5edacaf5a325d464a84f952cb2e2647ffdc1d354b7a1077772cd0f5ce1a
14-
sourceBlobDigest: sha256:443ed43ddde1813b773d4c9ef167a4be2fb41e568b801e43790c5b41bf80386b
13+
sourceRevisionDigest: sha256:1ee32a806cc62fb2ea0359d3e3bd0a7bfd85e739abe15af4c81944953da8a4a2
14+
sourceBlobDigest: sha256:ba34b5e8162fb661727f5fc9878a8a8862a31609f96a6d73abf9d2c12076d872
1515
outLocation: /Users/cad/f/src/opa-java
1616
workflow:
1717
workflowVersion: 1.0.0

build.gradle

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ java {
3434
withSourcesJar()
3535
withJavadocJar()
3636
}
37+
3738
model {
3839
tasks.generatePomFileForMavenPublication {
3940
destination = file("$buildDir/pom.xml")
@@ -57,11 +58,23 @@ javadoc {
5758
options.addStringOption('Xdoclint:none', '-quiet')
5859
}
5960

60-
6161
tasks.withType(Javadoc) {
6262
failOnError false
6363
options.addStringOption('Xdoclint:none', '-quiet')
6464
}
65+
66+
group = "com.styra"
67+
version = "1.7.0"
68+
69+
sourcesJar {
70+
archiveBaseName = "opa"
71+
}
72+
73+
javadocJar {
74+
archiveBaseName = "opa"
75+
}
76+
77+
6578
publishing {
6679
repositories {
6780
maven {
@@ -78,7 +91,7 @@ publishing {
7891
maven(MavenPublication) {
7992
groupId = 'com.styra'
8093
artifactId = 'opa'
81-
version = '1.6.0'
94+
version = '1.7.0'
8295

8396
from components.java
8497

@@ -124,15 +137,15 @@ if (!project.hasProperty('skip.signing')) {
124137
dependencies {
125138
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
126139
runtimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
127-
testImplementation 'org.testcontainers:testcontainers-bom:1.19.7'
128-
testImplementation 'org.testcontainers:testcontainers:1.19.7'
129-
testImplementation 'org.testcontainers:junit-jupiter:1.19.7'
140+
testImplementation 'org.testcontainers:testcontainers-bom:1.20.1'
141+
testImplementation 'org.testcontainers:testcontainers:1.20.1'
142+
testImplementation 'org.testcontainers:junit-jupiter:1.20.1'
130143
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.17.0'
131144
api 'com.fasterxml.jackson.core:jackson-core:2.17.0'
132145
implementation 'org.apache.httpcomponents:httpcore:4.4.16'
133146
api 'com.fasterxml.jackson.core:jackson-databind:2.17.0'
134-
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.17.0'
135-
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.17.0'
147+
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.17.2'
148+
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.17.2'
136149
implementation 'org.openapitools:jackson-databind-nullable:0.2.6'
137150
implementation 'org.apache.httpcomponents:httpclient:4.5.14'
138151
implementation 'org.apache.httpcomponents:httpmime:4.5.14'
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# ServerError
1+
# ServerErrorWithStatusCode
22

33

44
## Fields
55

66
| Field | Type | Required | Description | Example |
77
| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- |
8+
| `httpStatusCode` | *Optional<String>* | :heavy_minus_sign: | N/A | 200 |
89
| `code` | *String* | :heavy_check_mark: | N/A | |
910
| `message` | *String* | :heavy_check_mark: | N/A | |
1011
| `errors` | List<[Errors](../../models/shared/Errors.md)> | :heavy_minus_sign: | N/A | |
11-
| `decisionId` | *Optional<String>* | :heavy_minus_sign: | N/A | b84cf736-213c-4932-a8e4-bb5c648f1b4d |
12-
| `httpStatusCode` | *Optional<String>* | :heavy_minus_sign: | N/A | 200 |
12+
| `decisionId` | *Optional<String>* | :heavy_minus_sign: | N/A | b84cf736-213c-4932-a8e4-bb5c648f1b4d |
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# ResponsesSuccessfulPolicyResponse
1+
# SuccessfulPolicyResponseWithStatusCode
22

33

44
## Fields
55

66
| Field | Type | Required | Description | Example |
77
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
8+
| `httpStatusCode` | *Optional<String>* | :heavy_minus_sign: | N/A | 200 |
89
| `result` | [Optional<Result>](../../models/shared/Result.md) | :heavy_minus_sign: | The base or virtual document referred to by the URL path. If the path is undefined, this key will be omitted. | |
910
| `metrics` | Map<String, *Object*> | :heavy_minus_sign: | If query metrics are enabled, this field contains query performance metrics collected during the parse, compile, and evaluation steps. | |
1011
| `decisionId` | *Optional<String>* | :heavy_minus_sign: | If decision logging is enabled, this field contains a string that uniquely identifies the decision. The identifier will be included in the decision log event for this decision. Callers can use the identifier for correlation purposes. | |
11-
| `provenance` | [Optional<Provenance>](../../models/shared/Provenance.md) | :heavy_minus_sign: | Provenance information can be requested on individual API calls and are returned inline with the API response. To obtain provenance information on an API call, specify the `provenance=true` query parameter when executing the API call. | |
12-
| `httpStatusCode` | *Optional<String>* | :heavy_minus_sign: | N/A | 200 |
12+
| `provenance` | [Optional<Provenance>](../../models/shared/Provenance.md) | :heavy_minus_sign: | Provenance information can be requested on individual API calls and are returned inline with the API response. To obtain provenance information on an API call, specify the `provenance=true` query parameter when executing the API call. | |

0 commit comments

Comments
 (0)