Skip to content

Commit

Permalink
Fix param names for /sys/health and /sys/init endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
wiebeck authored and vsevel committed Jan 6, 2025
1 parent 40cf266 commit ef066a6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
18 changes: 9 additions & 9 deletions client/src/main/specs/sys/health.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ operations:
- name: statusCode
method: HEAD
path: health
queryFrom: [standbyOk, perfStandbyOk]
queryFrom: [standbyok, perfstandbyok]
authenticated: false
parameters:
- name: standbyOk
- name: standbyok
type: Boolean
includeNulls: false
- name: perfStandbyOk
- name: perfstandbyok
type: Boolean
includeNulls: false

Expand All @@ -28,13 +28,13 @@ operations:
- name: info
method: GET
path: health
queryFrom: [standbyOk, perfStandbyOk]
queryFrom: [standbyok, perfstandbyok]
authenticated: false
parameters:
- name: standbyOk
- name: standbyok
type: Boolean
includeNulls: false
- name: perfStandbyOk
- name: perfstandbyok
type: Boolean
includeNulls: false
result:
Expand Down Expand Up @@ -83,10 +83,10 @@ methods:
- name: status
returnType: java.util.concurrent.CompletionStage<$$.api.sys.health.VaultHealthStatus>
parameters:
standbyOk: Boolean
perfStandbyOk: Boolean
standbyok: Boolean
perfstandbyok: Boolean
body: |
return statusCode(standbyOk, perfStandbyOk).thenApply($health:T::fromStatusCode);
return statusCode(standbyok, perfstandbyok).thenApply($health:T::fromStatusCode);
bodyArguments:
health: <type>$$.api.sys.health.VaultHealthStatus

Expand Down
5 changes: 2 additions & 3 deletions client/src/main/specs/sys/init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ types:
properties:
- name: pgpKeys
type: java.util.List<String>
- name: rootTokenPGPKey
- name: rootTokenPgpKey
type: String
- name: secretShares
type: Integer
Expand All @@ -48,7 +48,7 @@ types:
type: Integer
- name: recoveryThreshold
type: Integer
- name: recoveryPGPKeys
- name: recoveryPgpKeys
type: java.util.List<String>

- name: Result
Expand All @@ -61,4 +61,3 @@ types:
type: java.util.List<String>
- name: rootToken
type: String

0 comments on commit ef066a6

Please sign in to comment.