The jsonschema package is part of of the API of the mcp package, so it should not be internal. Change-Id: I9520797837329fc2cda09c2f46ec4d48d031b9d3 Reviewed-on: https://go-review.googlesource.com/c/tools/+/669996 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Robert Findley <rfindley@google.com>
31 lines
846 B
JSON
31 lines
846 B
JSON
[
|
|
{
|
|
"description": "exclusiveMaximum validation",
|
|
"schema": {
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"exclusiveMaximum": 3.0
|
|
},
|
|
"tests": [
|
|
{
|
|
"description": "below the exclusiveMaximum is valid",
|
|
"data": 2.2,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "boundary point is invalid",
|
|
"data": 3.0,
|
|
"valid": false
|
|
},
|
|
{
|
|
"description": "above the exclusiveMaximum is invalid",
|
|
"data": 3.5,
|
|
"valid": false
|
|
},
|
|
{
|
|
"description": "ignores non-numbers",
|
|
"data": "x",
|
|
"valid": true
|
|
}
|
|
]
|
|
}
|
|
]
|