1*97bd480fSBaptiste Daroussin[ 2*97bd480fSBaptiste Daroussin { 3*97bd480fSBaptiste Daroussin "description": "maximum validation", 4*97bd480fSBaptiste Daroussin "schema": {"maximum": 3.0}, 5*97bd480fSBaptiste Daroussin "tests": [ 6*97bd480fSBaptiste Daroussin { 7*97bd480fSBaptiste Daroussin "description": "below the maximum is valid", 8*97bd480fSBaptiste Daroussin "data": 2.6, 9*97bd480fSBaptiste Daroussin "valid": true 10*97bd480fSBaptiste Daroussin }, 11*97bd480fSBaptiste Daroussin { 12*97bd480fSBaptiste Daroussin "description": "above the maximum is invalid", 13*97bd480fSBaptiste Daroussin "data": 3.5, 14*97bd480fSBaptiste Daroussin "valid": false 15*97bd480fSBaptiste Daroussin }, 16*97bd480fSBaptiste Daroussin { 17*97bd480fSBaptiste Daroussin "description": "ignores non-numbers", 18*97bd480fSBaptiste Daroussin "data": "x", 19*97bd480fSBaptiste Daroussin "valid": true 20*97bd480fSBaptiste Daroussin } 21*97bd480fSBaptiste Daroussin ] 22*97bd480fSBaptiste Daroussin }, 23*97bd480fSBaptiste Daroussin { 24*97bd480fSBaptiste Daroussin "description": "exclusiveMaximum validation", 25*97bd480fSBaptiste Daroussin "schema": { 26*97bd480fSBaptiste Daroussin "maximum": 3.0, 27*97bd480fSBaptiste Daroussin "exclusiveMaximum": true 28*97bd480fSBaptiste Daroussin }, 29*97bd480fSBaptiste Daroussin "tests": [ 30*97bd480fSBaptiste Daroussin { 31*97bd480fSBaptiste Daroussin "description": "below the maximum is still valid", 32*97bd480fSBaptiste Daroussin "data": 2.2, 33*97bd480fSBaptiste Daroussin "valid": true 34*97bd480fSBaptiste Daroussin }, 35*97bd480fSBaptiste Daroussin { 36*97bd480fSBaptiste Daroussin "description": "boundary point is invalid", 37*97bd480fSBaptiste Daroussin "data": 3.0, 38*97bd480fSBaptiste Daroussin "valid": false 39*97bd480fSBaptiste Daroussin } 40*97bd480fSBaptiste Daroussin ] 41*97bd480fSBaptiste Daroussin } 42*97bd480fSBaptiste Daroussin] 43