Skip to content

Commit

Permalink
fix: add const values to schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
ori-shem-tov committed Oct 12, 2023
1 parent 40263bf commit c5ff5e5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/schemas/keyreg.transaction.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"$ref": "http://algo-models.com/schemas/bytes32.json"
},
"type": {
"type": "string"
"type": "string",
"const": "keyreg"
},
"fee": {
"type": "integer",
Expand Down
3 changes: 2 additions & 1 deletion lib/schemas/keyreg.transaction.nonparticipation.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"$ref": "http://algo-models.com/schemas/bytes32.json"
},
"type": {
"type": "string"
"type": "string",
"const": "keyreg"
},
"fee": {
"type": "integer",
Expand Down
3 changes: 2 additions & 1 deletion lib/schemas/pay.transaction.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"$ref": "bytes32.json"
},
"type": {
"type": "string"
"type": "string",
"const": "pay"
},
"fee": {
"type": "integer"
Expand Down

0 comments on commit c5ff5e5

Please sign in to comment.