Documentation
¶
Index ¶
- Variables
- func GenerateSchema(v any) *jsonschema.Schema
- func GetSchemaProp(base *jsonschema.Schema, propName string) *jsonschema.Schema
- func NewStringLike(modFuncs ...modifierFunc) *jsonschema.Schema
- func NewStringLikeWithBlank(modFuncs ...modifierFunc) *jsonschema.Schema
- func SchemaPropMerge(base *jsonschema.Schema, propName string, modifyFunc func(*jsonschema.Schema))
- type PropertyChain
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
Click to show internal directories.
Click to hide internal directories.