constructor

command
v0.4.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2025 License: MIT Imports: 2 Imported by: 0

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

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL