Skip to content

Commit 8fef102

Browse files
committed
Add more detailed schema for DraftCommitTxRequest
Signed-off-by: Sasha Bogicevic <[email protected]>
1 parent e9c62e6 commit 8fef102

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

hydra-node/json-schemas/api.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2971,9 +2971,18 @@ components:
29712971
type: object
29722972
items:
29732973
oneof:
2974-
- $ref: "api.yaml#/components/schemas/UTxO"
2974+
- $ref: "api.yaml#/components/schemas/SimpleCommitRequest"
29752975
- $ref: "api.yaml#/components/schemas/FullCommitRequest"
29762976

2977+
SimpleCommitRequest:
2978+
type: object
2979+
required:
2980+
- utxoToCommit
2981+
properties:
2982+
utxoToCommit:
2983+
$ref: "api.yaml#/components/schemas/UTxO"
2984+
amount:
2985+
$ref: "api.yaml#/components/schemas/Coin"
29772986
FullCommitRequest:
29782987
type: object
29792988
required:

0 commit comments

Comments
 (0)