Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Integer validation prints message as if floating point #842

Open
itowlson opened this issue Aug 14, 2019 · 1 comment
Open

Integer validation prints message as if floating point #842

itowlson opened this issue Aug 14, 2019 · 1 comment

Comments

@itowlson
Copy link
Contributor

Definition:

    "port": {
      "type": "integer",
      "default": 8080,
      "minimum": 1000,
      "maximum": 9999
    }

Command:

duffle install sr141436 .\data\bundle.json -f --set port=8087789

Error message:

Error: cannot use value: 8087789 as parameter port: must be less than or equal to 9999.000000

I expected the bound to be printed as 9999 rather than 9999.000000.

@jeremyrickard
Copy link
Member

This appears to be because of the JSON Schema validation library. I'll see if we can have it handle numeric types more appropriately.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants