command
Version:
v0.4.0
Opens a new window with list of versions in this module.
Published: May 31, 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
Simple examples demonstrating the JSON Schema Constructor API for programmatic schema building.
Running the Example
go run main.go
What's Demonstrated
The example showcases the Constructor API's key capabilities:
- Basic Types: String, integer, array, and object schemas with validation keywords
- Value Constraints: Constant values and enumerations
- Schema Composition: OneOf, AnyOf, AllOf, and conditional logic
- Convenience Functions: Pre-built schemas for common formats (email, UUID, datetime)
- Immediate Validation: Direct validation without compilation steps
Documentation
Complete API reference: docs/constructor.md
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.