You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@johnzon.apache.org by "Emmanuel (Jira)" <ji...@apache.org> on 2020/10/16 13:02:00 UTC

[jira] [Created] (JOHNZON-322) johnzon-jsonschema: BaseNumberValidation cannot support negative numbers

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)