command
Version:
v0.6.14
Opens a new window with list of versions in this module.
Published: Feb 14, 2026
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Shows how to validate different input types with the same schema.
What it shows
- Validate JSON bytes, structs, and maps
- Auto-detection with
Validate() method
- Type-specific methods:
ValidateJSON(), ValidateStruct(), ValidateMap()
Run
go run main.go
Output
Multiple Input Types Demo
========================
JSON bytes: ✅ Valid
Go struct: ✅ Valid
Map data: ✅ Valid
Type-specific methods:
ValidateJSON: ✅ Valid
ValidateStruct: ✅ Valid
ValidateMap: ✅ Valid
Documentation
¶
Package main demonstrates multiple-input-types usage of the jsonschema library.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.