Emmanuel created JOHNZON-322:
--------------------------------

             Summary: johnzon-jsonschema: BaseNumberValidation cannot support 
negative numbers
                 Key: JOHNZON-322
                 URL: https://issues.apache.org/jira/browse/JOHNZON-322
             Project: Johnzon
          Issue Type: Bug
    Affects Versions: 1.2.8
            Reporter: Emmanuel


{{BaseNumberValidation}} is the parent class of all number validations and such 
validations need to support negative numbers.
 For instance, trying to validate with a -1 {{MinimumValidation}} will fail 
when val is {{-1}} or {{0}}.

Related code: 
 
[https://github.com/apache/johnzon/blob/master/johnzon-jsonschema/src/main/java/org/apache/johnzon/jsonschema/spi/builtin/BaseNumberValidation.java#L40-L42]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to