command
Version:
v0.6.3
Opens a new window with list of versions in this module.
Published: Dec 9, 2025
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Constructor API Examples
Demonstrates building JSON schemas programmatically using the Constructor API.
Usage
go run main.go
Features Demonstrated
- Type Constructors: String, integer, array, object with validation
- Constraints: Enums, constants, min/max values, patterns
- Composition: OneOf, AnyOf, conditional schemas
- Convenience: Pre-built schemas for common formats (email, UUID, datetime)
- Custom Compiler: Using SetCompiler for dynamic defaults
Documentation
Complete API reference: docs/constructor.md
Documentation
¶
Package main demonstrates constructor usage of the jsonschema library.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.