mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Problem: JSON schema allows output amount "0"
Soluton: Change the regex to allow "1" to "9"x20 but not "0"
This commit is contained in:
parent
2386ca9d71
commit
8c7d3b8349
@ -79,7 +79,7 @@ definitions:
|
|||||||
properties:
|
properties:
|
||||||
amount:
|
amount:
|
||||||
type: string
|
type: string
|
||||||
pattern: "^[0-9]{1,20}$"
|
pattern: "^[1-9][0-9]{0,19}$"
|
||||||
condition:
|
condition:
|
||||||
type: object
|
type: object
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user