schemautils

package
v0.2.6-beta Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const BaseSchemaID = "https://github.com/getsynq/synq-monitors"

Variables

This section is empty.

Functions

func NewReflector

func NewReflector() jsonschema.Reflector

Types

type DiscriminatedUnionBuilder

type DiscriminatedUnionBuilder[T any] struct {
	Reflector     jsonschema.Reflector
	Discriminator string
	Registry      map[string]T

	RequireDiscriminator bool
}

func (*DiscriminatedUnionBuilder[T]) Build

func (b *DiscriminatedUnionBuilder[T]) Build(
	opts ...func(key string, schema *jsonschema.Schema),
) *jsonschema.Schema

Jump to

Keyboard shortcuts

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