From c28cf71090ca1629e6b70126dcaa535affce353f Mon Sep 17 00:00:00 2001 From: fireblocks_dx_team Date: Mon, 17 Jun 2024 12:47:11 +0000 Subject: [PATCH] Generated SDK #1873 --- .github/workflows/create-pr.yml | 25 +++++++++++++++++++ api/openapi.yaml | 1 + docs/PolicyRuleCheckResult.md | 1 + .../sdk/model/PolicyRuleCheckResult.java | 4 ++- 4 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/create-pr.yml diff --git a/.github/workflows/create-pr.yml b/.github/workflows/create-pr.yml new file mode 100644 index 0000000..f92a653 --- /dev/null +++ b/.github/workflows/create-pr.yml @@ -0,0 +1,25 @@ +name: Create Pull Request + +on: + push: + branches: + - 'fireblocks-api-spec/generated/*' + +jobs: + create-pull-request: + runs-on: ubuntu-latest + + steps: + - name: Check out repository code + uses: actions/checkout@v4 + + - name: Create pull request + run: | + gh pr create \ + --title "${{ github.event.commits[0].message }}" \ + --body "This PR was automatically generated." \ + --base master \ + --head ${{ github.ref }} \ + --reviewer asafs932,zoharsf,YoavBZ + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/api/openapi.yaml b/api/openapi.yaml index 85a1999..d1acf7d 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -24035,6 +24035,7 @@ components: enum: - ok - failure + - test type: string errors: description: A set of rule validation error objects diff --git a/docs/PolicyRuleCheckResult.md b/docs/PolicyRuleCheckResult.md index 11dfc6a..13b9926 100644 --- a/docs/PolicyRuleCheckResult.md +++ b/docs/PolicyRuleCheckResult.md @@ -20,6 +20,7 @@ The rule validation result |---- | -----| | OK | "ok" | | FAILURE | "failure" | +| TEST | "test" | diff --git a/src/main/java/com/fireblocks/sdk/model/PolicyRuleCheckResult.java b/src/main/java/com/fireblocks/sdk/model/PolicyRuleCheckResult.java index e696628..d16c3e6 100644 --- a/src/main/java/com/fireblocks/sdk/model/PolicyRuleCheckResult.java +++ b/src/main/java/com/fireblocks/sdk/model/PolicyRuleCheckResult.java @@ -41,7 +41,9 @@ public class PolicyRuleCheckResult { public enum StatusEnum { OK("ok"), - FAILURE("failure"); + FAILURE("failure"), + + TEST("test"); private String value;