command
Version:
v0.6.15
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
¶
Basic Example
Simple JSON Schema validation using maps.
What it shows
- Compile a schema
- Validate data
- Handle validation errors
Run
go run main.go
Output
✅ Valid data passed
❌ Invalid data failed:
- name: [Value should be at least 2 characters long]
- age: [Value should be at least 0]
Documentation
¶
Package main demonstrates basic usage of the jsonschema library.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.