threefoldtech / 0-bootstrap

Zero-OS Bootstrap Webservice
Apache License 2.0
1 stars 2 forks source link

validate the format of the farmer ID #4

Closed zaibon closed 4 years ago

zaibon commented 4 years ago

Because of the way jsx schema integer value are printed on console, the farmer ID is shown like this 123,456. This makes the farmer believe that he has to include the , inside its farmer ID.

To mitigate this confusion lets validate the format of the farmer ID. Farmer ID needs to be a positive non null integer with no coma or dot. Let's also make sure to explain the expected format too.

maxux commented 4 years ago

Fixed by 9b14128, pushed on production