Versions in this module Expand all Collapse all v0 v0.1.0 Nov 4, 2025 Changes in this version + func ArrayType(items *oas3.Schema) *oas3.Schema + func BoolType() *oas3.Schema + func Bottom() *oas3.Schema + func BuildArray(items *oas3.Schema, elements []*oas3.Schema) *oas3.Schema + func BuildObject(props map[string]*oas3.Schema, required []string) *oas3.Schema + func ConstBool(b bool) *oas3.Schema + func ConstInteger(n int64) *oas3.Schema + func ConstNull() *oas3.Schema + func ConstNumber(n float64) *oas3.Schema + func ConstString(s string) *oas3.Schema + func GetProperty(obj *oas3.Schema, key string, opts SchemaExecOptions) *oas3.Schema + func HasProperty(obj *oas3.Schema, key string, opts SchemaExecOptions) *oas3.Schema + func IntegerType() *oas3.Schema + func Intersect(a, b *oas3.Schema, opts SchemaExecOptions) *oas3.Schema + func MergeObjects(a, b *oas3.Schema, opts SchemaExecOptions) *oas3.Schema + func MightBeArray(s *oas3.Schema) bool + func MightBeNumber(s *oas3.Schema) bool + func MightBeObject(s *oas3.Schema) bool + func MightBeString(s *oas3.Schema) bool + func NullType() *oas3.Schema + func NumberType() *oas3.Schema + func ObjectType() *oas3.Schema + func RequireType(s *oas3.Schema, typ oas3.SchemaType, opts SchemaExecOptions) *oas3.Schema + func StringType() *oas3.Schema + func TestExecuteShorthand(t *testing.T) + func Top() *oas3.Schema + func Union(schemas []*oas3.Schema, opts SchemaExecOptions) *oas3.Schema + type AValue struct + Closure *Closure + Kind ValueKind + Schema *oas3.Schema + func NewClosureValue(pc, scopeIdx int) AValue + func NewSchemaValue(s *oas3.Schema) AValue + func (v AValue) AsClosure() (*Closure, bool) + func (v AValue) AsSchema() (*oas3.Schema, bool) + type Closure struct + PC int + ScopeIndex int + type LogLevel int + const LevelDebug + const LevelError + const LevelInfo + const LevelWarn + func ParseLogLevel(s string) LogLevel + func (l LogLevel) String() string + type Logger interface + Debugf func(format string, args ...any) + Errorf func(format string, args ...any) + Infof func(format string, args ...any) + Warnf func(format string, args ...any) + With func(fields map[string]any) Logger + func NewLogger(level LogLevel, w io.Writer) Logger + type PathSegment struct + IsSymbolic bool + Key interface{} + type PathWildcard struct + type SValue struct + Schema *oas3.Schema + type SchemaExecOptions struct + AnyOfLimit int + EnableMemo bool + EnableWarnings bool + EnumLimit int + LogLevel string + LogMaxEnumValues int + LogMaxProps int + LogSchemaDeltas bool + LogStackPreviewDepth int + MaxDepth int + StrictMode bool + WideningLevel int + func DefaultOptions() SchemaExecOptions + type SchemaExecResult struct + Schema *oas3.Schema + Warnings []string + func ExecSchema(ctx context.Context, code *gojq.Code, input *oas3.Schema, ...) (*SchemaExecResult, error) + func RunSchema(ctx context.Context, query *gojq.Query, input *oas3.Schema, ...) (*SchemaExecResult, error) + func (r *SchemaExecResult) String() string + type SchemaLogOptions struct + LogMaxAnyOfBranches int + LogMaxEnumValues int + LogMaxProps int + LogStackPreviewDepth int + type ValueKind uint8 + const VClosure + const VSchema