Skip to content

Commit

Permalink
fix error list related type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Daniels committed Oct 3, 2024
1 parent 2c97805 commit 5712e3b
Show file tree
Hide file tree
Showing 50 changed files with 1,443 additions and 620 deletions.
255 changes: 162 additions & 93 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ id: 47e8e950-a454-4ebb-9f78-86fda7dfa0c2
management:
docChecksum: 54d33facef3aa19f358d15ab44e34141
docVersion: 0.2.0
speakeasyVersion: 1.376.0
generationVersion: 2.402.5
releaseVersion: 1.7.0
configChecksum: 1e364b7503baf8ad2a9aca5d31bbc6b5
speakeasyVersion: 1.406.0
generationVersion: 2.429.0
releaseVersion: 1.8.0
configChecksum: 39fc35b210cab57386c8f5c0d40d9dcb
repoURL: https://github.com/StyraInc/opa-java.git
published: true
features:
java:
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.1
core: 3.29.4
core: 3.30.4
examples: 2.81.3
flattening: 2.81.1
globalSecurity: 2.82.7
Expand All @@ -22,22 +22,109 @@ features:
sdkHooks: 0.1.0
unions: 0.0.5
generatedFiles:
- src/main/java/com/styra/opa/openapi/SecuritySource.java
- src/main/java/com/styra/opa/openapi/SDKConfiguration.java
- src/main/java/com/styra/opa/openapi/models/operations/ExecuteDefaultPolicyWithInputRequestBuilder.java
- src/main/java/com/styra/opa/openapi/models/operations/ExecutePolicyRequestBuilder.java
- src/main/java/com/styra/opa/openapi/models/operations/ExecutePolicyWithInputRequestBuilder.java
- src/main/java/com/styra/opa/openapi/models/operations/ExecuteBatchPolicyWithInputRequestBuilder.java
- src/main/java/com/styra/opa/openapi/models/operations/HealthRequestBuilder.java
- src/main/java/com/styra/opa/openapi/models/operations/SDKMethodInterfaces.java
- src/main/java/com/styra/opa/openapi/OpaApiClient.java
- .gitattributes
- CONTRIBUTING.md
- USAGE.md
- build.gradle
- docs/models/errors/BatchServerError.md
- docs/models/errors/ClientError.md
- docs/models/errors/ClientError1.md
- docs/models/errors/Errors.md
- docs/models/errors/Location.md
- docs/models/errors/ServerError.md
- docs/models/errors/ServerErrorErrors.md
- docs/models/errors/ServerErrorLocation.md
- docs/models/errors/UnhealthyServer.md
- docs/models/operations/ExecuteBatchPolicyWithInputRequest.md
- docs/models/operations/ExecuteBatchPolicyWithInputRequestBody.md
- docs/models/operations/ExecuteBatchPolicyWithInputResponse.md
- docs/models/operations/ExecuteDefaultPolicyWithInputRequest.md
- docs/models/operations/ExecuteDefaultPolicyWithInputResponse.md
- docs/models/operations/ExecutePolicyRequest.md
- docs/models/operations/ExecutePolicyResponse.md
- docs/models/operations/ExecutePolicyWithInputRequest.md
- docs/models/operations/ExecutePolicyWithInputRequestBody.md
- docs/models/operations/ExecutePolicyWithInputResponse.md
- docs/models/operations/HealthRequest.md
- docs/models/operations/HealthResponse.md
- docs/models/shared/BatchMixedResults.md
- docs/models/shared/BatchSuccessfulPolicyEvaluation.md
- docs/models/shared/Errors.md
- docs/models/shared/Explain.md
- docs/models/shared/GzipAcceptEncoding.md
- docs/models/shared/GzipContentEncoding.md
- docs/models/shared/HealthyServer.md
- docs/models/shared/Input.md
- docs/models/shared/Location.md
- docs/models/shared/Provenance.md
- docs/models/shared/Responses.md
- docs/models/shared/ResponsesErrors.md
- docs/models/shared/ResponsesLocation.md
- docs/models/shared/Result.md
- docs/models/shared/Revision.md
- docs/models/shared/Security.md
- docs/models/shared/ServerError.md
- docs/models/shared/ServerErrorWithStatusCode.md
- docs/models/shared/SuccessfulPolicyResponse.md
- docs/models/shared/SuccessfulPolicyResponseWithStatusCode.md
- docs/sdks/opaapiclient/README.md
- gradle/wrapper/gradle-wrapper.jar
- gradle/wrapper/gradle-wrapper.properties
- gradlew
- gradlew.bat
- settings.gradle
- src/main/java/com/styra/opa/openapi/OpaApiClient.java
- src/main/java/com/styra/opa/openapi/SDKConfiguration.java
- src/main/java/com/styra/opa/openapi/SecuritySource.java
- src/main/java/com/styra/opa/openapi/models/errors/AuthException.java
- src/main/java/com/styra/opa/openapi/models/errors/BatchServerError.java
- src/main/java/com/styra/opa/openapi/models/errors/ClientError.java
- src/main/java/com/styra/opa/openapi/models/errors/ClientError1.java
- src/main/java/com/styra/opa/openapi/models/errors/Errors.java
- src/main/java/com/styra/opa/openapi/models/errors/Location.java
- src/main/java/com/styra/opa/openapi/models/errors/SDKError.java
- src/main/java/com/styra/opa/openapi/models/errors/ServerError.java
- src/main/java/com/styra/opa/openapi/models/errors/ServerErrorErrors.java
- src/main/java/com/styra/opa/openapi/models/errors/ServerErrorLocation.java
- src/main/java/com/styra/opa/openapi/models/errors/UnhealthyServer.java
- src/main/java/com/styra/opa/openapi/models/operations/ExecuteBatchPolicyWithInputRequest.java
- src/main/java/com/styra/opa/openapi/models/operations/ExecuteBatchPolicyWithInputRequestBody.java
- src/main/java/com/styra/opa/openapi/models/operations/ExecuteBatchPolicyWithInputRequestBuilder.java
- src/main/java/com/styra/opa/openapi/models/operations/ExecuteBatchPolicyWithInputResponse.java
- src/main/java/com/styra/opa/openapi/models/operations/ExecuteDefaultPolicyWithInputRequest.java
- src/main/java/com/styra/opa/openapi/models/operations/ExecuteDefaultPolicyWithInputRequestBuilder.java
- src/main/java/com/styra/opa/openapi/models/operations/ExecuteDefaultPolicyWithInputResponse.java
- src/main/java/com/styra/opa/openapi/models/operations/ExecutePolicyRequest.java
- src/main/java/com/styra/opa/openapi/models/operations/ExecutePolicyRequestBuilder.java
- src/main/java/com/styra/opa/openapi/models/operations/ExecutePolicyResponse.java
- src/main/java/com/styra/opa/openapi/models/operations/ExecutePolicyWithInputRequest.java
- src/main/java/com/styra/opa/openapi/models/operations/ExecutePolicyWithInputRequestBody.java
- src/main/java/com/styra/opa/openapi/models/operations/ExecutePolicyWithInputRequestBuilder.java
- src/main/java/com/styra/opa/openapi/models/operations/ExecutePolicyWithInputResponse.java
- src/main/java/com/styra/opa/openapi/models/operations/HealthRequest.java
- src/main/java/com/styra/opa/openapi/models/operations/HealthRequestBuilder.java
- src/main/java/com/styra/opa/openapi/models/operations/HealthResponse.java
- src/main/java/com/styra/opa/openapi/models/operations/SDKMethodInterfaces.java
- src/main/java/com/styra/opa/openapi/models/shared/BatchMixedResults.java
- src/main/java/com/styra/opa/openapi/models/shared/BatchSuccessfulPolicyEvaluation.java
- src/main/java/com/styra/opa/openapi/models/shared/Errors.java
- src/main/java/com/styra/opa/openapi/models/shared/Explain.java
- src/main/java/com/styra/opa/openapi/models/shared/GzipAcceptEncoding.java
- src/main/java/com/styra/opa/openapi/models/shared/GzipContentEncoding.java
- src/main/java/com/styra/opa/openapi/models/shared/HealthyServer.java
- src/main/java/com/styra/opa/openapi/models/shared/Input.java
- src/main/java/com/styra/opa/openapi/models/shared/Location.java
- src/main/java/com/styra/opa/openapi/models/shared/Provenance.java
- src/main/java/com/styra/opa/openapi/models/shared/Responses.java
- src/main/java/com/styra/opa/openapi/models/shared/ResponsesErrors.java
- src/main/java/com/styra/opa/openapi/models/shared/ResponsesLocation.java
- src/main/java/com/styra/opa/openapi/models/shared/Result.java
- src/main/java/com/styra/opa/openapi/models/shared/Revision.java
- src/main/java/com/styra/opa/openapi/models/shared/Security.java
- src/main/java/com/styra/opa/openapi/models/shared/ServerError.java
- src/main/java/com/styra/opa/openapi/models/shared/ServerErrorWithStatusCode.java
- src/main/java/com/styra/opa/openapi/models/shared/SuccessfulPolicyResponse.java
- src/main/java/com/styra/opa/openapi/models/shared/SuccessfulPolicyResponseWithStatusCode.java
- src/main/java/com/styra/opa/openapi/utils/BackoffStrategy.java
- src/main/java/com/styra/opa/openapi/utils/BigDecimalString.java
- src/main/java/com/styra/opa/openapi/utils/BigIntegerString.java
Expand Down Expand Up @@ -75,82 +162,64 @@ generatedFiles:
- src/main/java/com/styra/opa/openapi/utils/TypedObject.java
- src/main/java/com/styra/opa/openapi/utils/Types.java
- src/main/java/com/styra/opa/openapi/utils/Utils.java
- src/main/java/com/styra/opa/openapi/models/errors/AuthException.java
- src/main/java/com/styra/opa/openapi/models/errors/SDKError.java
- src/main/java/com/styra/opa/openapi/models/operations/ExecuteDefaultPolicyWithInputRequest.java
- src/main/java/com/styra/opa/openapi/models/operations/ExecuteDefaultPolicyWithInputResponse.java
- src/main/java/com/styra/opa/openapi/models/operations/ExecutePolicyRequest.java
- src/main/java/com/styra/opa/openapi/models/operations/ExecutePolicyResponse.java
- src/main/java/com/styra/opa/openapi/models/operations/ExecutePolicyWithInputRequestBody.java
- src/main/java/com/styra/opa/openapi/models/operations/ExecutePolicyWithInputRequest.java
- src/main/java/com/styra/opa/openapi/models/operations/ExecutePolicyWithInputResponse.java
- src/main/java/com/styra/opa/openapi/models/operations/ExecuteBatchPolicyWithInputRequestBody.java
- src/main/java/com/styra/opa/openapi/models/operations/ExecuteBatchPolicyWithInputRequest.java
- src/main/java/com/styra/opa/openapi/models/operations/ExecuteBatchPolicyWithInputResponse.java
- src/main/java/com/styra/opa/openapi/models/operations/HealthRequest.java
- src/main/java/com/styra/opa/openapi/models/operations/HealthResponse.java
- src/main/java/com/styra/opa/openapi/models/shared/Result.java
- src/main/java/com/styra/opa/openapi/models/shared/Input.java
- src/main/java/com/styra/opa/openapi/models/shared/GzipAcceptEncoding.java
- src/main/java/com/styra/opa/openapi/models/shared/SuccessfulPolicyResponse.java
- src/main/java/com/styra/opa/openapi/models/shared/Revision.java
- src/main/java/com/styra/opa/openapi/models/shared/Provenance.java
- src/main/java/com/styra/opa/openapi/models/shared/Explain.java
- src/main/java/com/styra/opa/openapi/models/shared/GzipContentEncoding.java
- src/main/java/com/styra/opa/openapi/models/shared/Location.java
- src/main/java/com/styra/opa/openapi/models/shared/Errors.java
- src/main/java/com/styra/opa/openapi/models/shared/ServerErrorWithStatusCode.java
- src/main/java/com/styra/opa/openapi/models/shared/SuccessfulPolicyResponseWithStatusCode.java
- src/main/java/com/styra/opa/openapi/models/shared/Responses.java
- src/main/java/com/styra/opa/openapi/models/shared/BatchMixedResults.java
- src/main/java/com/styra/opa/openapi/models/shared/BatchSuccessfulPolicyEvaluation.java
- src/main/java/com/styra/opa/openapi/models/shared/HealthyServer.java
- src/main/java/com/styra/opa/openapi/models/shared/Security.java
- src/main/java/com/styra/opa/openapi/models/errors/Location.java
- src/main/java/com/styra/opa/openapi/models/errors/Errors.java
- src/main/java/com/styra/opa/openapi/models/errors/ClientError.java
- src/main/java/com/styra/opa/openapi/models/errors/ServerErrorLocation.java
- src/main/java/com/styra/opa/openapi/models/errors/ServerErrorErrors.java
- src/main/java/com/styra/opa/openapi/models/errors/ServerError.java
- src/main/java/com/styra/opa/openapi/models/errors/BatchServerError.java
- src/main/java/com/styra/opa/openapi/models/errors/UnhealthyServer.java
- docs/models/operations/ExecuteDefaultPolicyWithInputRequest.md
- docs/models/operations/ExecuteDefaultPolicyWithInputResponse.md
- docs/models/operations/ExecutePolicyRequest.md
- docs/models/operations/ExecutePolicyResponse.md
- docs/models/operations/ExecutePolicyWithInputRequestBody.md
- docs/models/operations/ExecutePolicyWithInputRequest.md
- docs/models/operations/ExecutePolicyWithInputResponse.md
- docs/models/operations/ExecuteBatchPolicyWithInputRequestBody.md
- docs/models/operations/ExecuteBatchPolicyWithInputRequest.md
- docs/models/operations/ExecuteBatchPolicyWithInputResponse.md
- docs/models/operations/HealthRequest.md
- docs/models/operations/HealthResponse.md
- docs/models/shared/Result.md
- docs/models/shared/Input.md
- docs/models/shared/GzipAcceptEncoding.md
- docs/models/shared/SuccessfulPolicyResponse.md
- docs/models/shared/Revision.md
- docs/models/shared/Provenance.md
- docs/models/shared/Explain.md
- docs/models/shared/GzipContentEncoding.md
- docs/models/shared/Location.md
- docs/models/shared/Errors.md
- docs/models/shared/ServerErrorWithStatusCode.md
- docs/models/shared/SuccessfulPolicyResponseWithStatusCode.md
- docs/models/shared/Responses.md
- docs/models/shared/BatchMixedResults.md
- docs/models/shared/BatchSuccessfulPolicyEvaluation.md
- docs/models/shared/HealthyServer.md
- docs/models/shared/Security.md
- docs/models/errors/Location.md
- docs/models/errors/Errors.md
- docs/models/errors/ClientError.md
- docs/models/errors/ServerErrorLocation.md
- docs/models/errors/ServerErrorErrors.md
- docs/models/errors/ServerError.md
- docs/models/errors/BatchServerError.md
- docs/models/errors/UnhealthyServer.md
- docs/sdks/opaapiclient/README.md
- USAGE.md
- CONTRIBUTING.md
examples:
executeDefaultPolicyWithInput:
speakeasy-default-execute-default-policy-with-input:
requestBody:
application/json: "4963.69"
responses:
"200":
application/json: "<value>"
"400":
application/json: {"code": "<value>", "message": "<value>"}
"500":
application/json: {"code": "<value>", "message": "<value>", "decision_id": "b84cf736-213c-4932-a8e4-bb5c648f1b4d"}
executePolicy:
speakeasy-default-execute-policy:
parameters:
path:
path: "app/rbac"
query: {}
header: {}
responses:
"200":
application/json: {"result": false}
"400":
application/json: {"code": "<value>", "message": "<value>"}
"500":
application/json: {"code": "<value>", "message": "<value>", "decision_id": "b84cf736-213c-4932-a8e4-bb5c648f1b4d"}
executePolicyWithInput:
speakeasy-default-execute-policy-with-input:
parameters:
path:
path: "app/rbac"
query: {}
header: {}
requestBody:
application/json: {"input": true}
responses:
"200":
application/json: {"result": false}
"400":
application/json: {"code": "<value>", "message": "<value>"}
"500":
application/json: {"code": "<value>", "message": "<value>", "decision_id": "b84cf736-213c-4932-a8e4-bb5c648f1b4d"}
executeBatchPolicyWithInput:
speakeasy-default-execute-batch-policy-with-input:
parameters:
path:
path: "app/rbac"
query: {}
header: {}
requestBody:
application/json: {"inputs": {"key": "6919.52"}}
responses:
"200":
application/json: {"batch_decision_id": "1bef6b7d-cd13-4890-bfe1-fd2e8de32189", "responses": {"key": {"result": "<value>"}}}
"207":
application/json: {"responses": {"key": {"http_status_code": "200", "code": "<value>", "message": "<value>", "decision_id": "b84cf736-213c-4932-a8e4-bb5c648f1b4d"}}}
"400":
application/json: {"code": "<value>", "message": "<value>"}
"500":
application/json: {"responses": {"key": {"code": "<value>", "message": "<value>", "decision_id": "b84cf736-213c-4932-a8e4-bb5c648f1b4d"}}}
health: {}
2 changes: 1 addition & 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.7.0
version: 1.8.0
additionalDependencies:
- testImplementation:org.junit.jupiter:junit-jupiter-api:5.8.2
- runtimeOnly:org.junit.jupiter:junit-jupiter-engine:5.8.2
Expand Down
7 changes: 3 additions & 4 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
speakeasyVersion: 1.376.0
speakeasyVersion: 1.406.0
sources:
openapi:
sourceNamespace: openapi
sourceRevisionDigest: sha256:1ee32a806cc62fb2ea0359d3e3bd0a7bfd85e739abe15af4c81944953da8a4a2
sourceRevisionDigest: sha256:e15a8659c4439e4fd0856f8b1a4471a34847c8553fd62f48ec794f9439086328
sourceBlobDigest: sha256:ba34b5e8162fb661727f5fc9878a8a8862a31609f96a6d73abf9d2c12076d872
tags:
- latest
targets:
opa:
source: openapi
sourceNamespace: openapi
sourceRevisionDigest: sha256:1ee32a806cc62fb2ea0359d3e3bd0a7bfd85e739abe15af4c81944953da8a4a2
sourceRevisionDigest: sha256:e15a8659c4439e4fd0856f8b1a4471a34847c8553fd62f48ec794f9439086328
sourceBlobDigest: sha256:ba34b5e8162fb661727f5fc9878a8a8862a31609f96a6d73abf9d2c12076d872
outLocation: /Users/cad/f/src/opa-java
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
Loading

0 comments on commit 5712e3b

Please sign in to comment.