| Filename | Latest commit message | Latest commit date |
|---|---|---|
Add ForLax[T], which ignores invalid types in schema inference instead of returning an error. This allows additional customization of a schema after inference does what it can. For example, an interface type where all the possible implementations are known can be described with "oneof". For #136. |
||
| .. | ||
| meta-schemas/draft2020-12 | ||
| testdata | ||
| annotations.go | ||
| doc.go | ||
| infer.go | ||
| infer_test.go | ||
| json_pointer.go | ||
| json_pointer_test.go | ||
| LICENSE | ||
| README.md | ||
| resolve.go | ||
| resolve_test.go | ||
| schema.go | ||
| schema_test.go | ||
| util.go | ||
| util_test.go | ||
| validate.go | ||
| validate_test.go | ||
TODO: this file should live at the root of the jsonschema-go module, above the jsonschema package.
JSON Schema for GO
This module implements the JSON Schema specification.
The jsonschema package supports creating schemas, validating JSON values
against a schema, and inferring a schema from a Go struct. See the package
documentation for usage.
Contributing
This module welcomes external contributions.
It has no dependencies outside of the standard library, and can be built with
the standard Go toolchain. Run go test ./... at the module root to run all
the tests.
Issues
This project uses the GitHub issue tracker for bug reports, feature requests, and other issues.
Please report bugs. If the SDK is not working as you expected, it is likely due to a bug or inadequate documentation, and reporting an issue will help us address this shortcoming.
When reporting a bug, make sure to answer these five questions:
- What did you do?
- What did you see?
- What did you expect to see?
- What version of the Go MCP SDK are you using?
- What version of Go are you using (
go version)?
License
This project is licensed under the MIT license. See the LICENSE file for details.