Esempio n. 1
0
         "minimum": 0,
         "exclusiveMaximum": 6,
         "multipleOf": 3
     },
     {
         "type": "integer",
         "minimum": 0,
         "maximum": 3,
         "multipleOf": 3
     },
 ),
 (
     {
         "type": "number",
         "minimum": 0,
         "exclusiveMaximum": next_up(0.0)
     },
     {
         "const": 0
     },
 ),
 (
     {
         "type": "number",
         "exclusiveMinimum": 1.5,
         "maximum": next_up(1.5)
     },
     {
         "const": next_up(1.5)
     },
 ),
     {"type": "integer", "minimum": 2, "multipleOf": 2},
 ),
 (
     {"type": "integer", "maximum": 1, "multipleOf": 2},
     {"type": "integer", "maximum": 0, "multipleOf": 2},
 ),
 (
     {"required": ["a"], "dependencies": {"a": ["b"], "b": ["c"], "x": ["y"]}},
     {"required": ["a", "b", "c"], "dependencies": {"x": ["y"]}},
 ),
 (
     {"type": "number", "minimum": 0, "exclusiveMaximum": 6, "multipleOf": 3},
     {"type": "integer", "minimum": 0, "maximum": 3, "multipleOf": 3},
 ),
 (
     {"type": "number", "minimum": 0, "exclusiveMaximum": next_up(0.0)},
     {"const": 0},
 ),
 (
     {"type": "number", "exclusiveMinimum": 1.5, "maximum": next_up(1.5)},
     {"const": next_up(1.5)},
 ),
 (
     {
         "type": "number",
         "minimum": 1.5,
         "exclusiveMaximum": 2.5,
         "multipleOf": 0.5,
     },
     {
         "type": "number",