go-sdk/internal/jsonschema
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jonathan Amsterdam 061f842459 jsonschema: validate numbers and strings
Add validation for keywords related to numbers and strings.

It may be surprising that keywords like "minimum" or "minLength"
don't imply that the instance is a number or string.
But that is how JSON Schema is designed.

Change-Id: I8805a5fe91ee345931e1c989f174ea2d0be6665a
Reviewed-on: https://go-review.googlesource.com/c/tools/+/667975
Reviewed-by: Robert Findley <rfindley@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Jonathan Amsterdam <jba@google.com>
2025-04-30 09:35:26 -07:00
..
testdata/draft2020-12 jsonschema: validate numbers and strings 2025-04-30 09:35:26 -07:00
infer.go internal/mcp/internal/jsonschema: schema definition 2025-04-25 08:33:53 -07:00
infer_test.go internal/mcp/internal/jsonschema: schema definition 2025-04-25 08:33:53 -07:00
schema.go internal/mcp/internal/jsonschema: schema definition 2025-04-25 08:33:53 -07:00
schema_test.go internal/mcp/internal/jsonschema: schema definition 2025-04-25 08:33:53 -07:00
util.go jsonschema: validate some keywords 2025-04-25 08:34:02 -07:00
util_test.go jsonschema: validate some keywords 2025-04-25 08:34:02 -07:00
validate.go jsonschema: validate numbers and strings 2025-04-30 09:35:26 -07:00
validate_test.go jsonschema: validate some keywords 2025-04-25 08:34:02 -07:00