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:
Troy McConaghy 2018-07-26 14:26:12 +02:00
parent 2386ca9d71
commit 8c7d3b8349

View File

@ -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