configschema

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StringLike = NewStringLike()

	StringLikeWithBlank = NewStringLikeWithBlank()
)

Functions

func GenerateSchema

func GenerateSchema(v any) *jsonschema.Schema

func GetSchemaProp

func GetSchemaProp(base *jsonschema.Schema, propName string) *jsonschema.Schema

Extract a property from a schema without having to cast it NOTE: This assumes you know the prop exists. There is no error checking

func NewStringLike added in v0.2.0

func NewStringLike(modFuncs ...modifierFunc) *jsonschema.Schema

func NewStringLikeWithBlank added in v0.2.0

func NewStringLikeWithBlank(modFuncs ...modifierFunc) *jsonschema.Schema

func SchemaPropMerge

func SchemaPropMerge(base *jsonschema.Schema, propName string, modifyFunc func(*jsonschema.Schema))

Types

type PropertyChain

type PropertyChain struct {
	// contains filtered or unexported fields
}

func NewPropertyChain

func NewPropertyChain() *PropertyChain

func (*PropertyChain) End

func (obj *PropertyChain) End() *orderedmap.OrderedMap

func (*PropertyChain) Set

func (obj *PropertyChain) Set(key string, value any) *PropertyChain

Jump to

Keyboard shortcuts

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