metaschema

package
v1.7.14 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyArray    = "array"
	KeyBoolean  = "boolean"
	KeyDate     = "date"
	KeyDateTime = "date-time"
	KeyEnum     = "enum"
	KeyInteger  = "integer"
	KeyNumber   = "number"
	KeyObject   = "object"
	KeyString   = "string"
	KeyUUID     = "uuid"

	KeyNumeric   = "Numeric"
	KeyNil       = "nil"
	KeyNilString = "<nil>"
	KeyNull      = "null"
)

Variables

This section is empty.

Functions

func ExportAny added in v1.7.5

func ExportAny(sch *jsonschema.Schema, coll *jsonschema.Collection, args *metamodel.Args) (any, error)

func ExportColumn added in v1.7.8

func ExportColumn(col *model.Column, coll *jsonschema.Collection, args *metamodel.Args) (*jsonschema.Schema, error)

func ExportEnum added in v1.7.5

func ExportEnum(x *enum.Enum, sch *jsonschema.Collection, args *metamodel.Args) (*jsonschema.Schema, error)

func ExportModel added in v1.7.5

func ExportModel(x *model.Model, coll *jsonschema.Collection, arg *metamodel.Args) (*jsonschema.Schema, error)

func ExportType added in v1.7.5

func ExportType(typ types.Type, coll *jsonschema.Collection, args *metamodel.Args) (*jsonschema.Schema, error)

func FromJSONType added in v1.7.10

func FromJSONType(s string, ref string) *types.Wrapped

func ImportArgs added in v1.7.9

func ImportArgs(coll *jsonschema.Collection, args *metamodel.Args) (*metamodel.Args, error)

func ImportColumn added in v1.7.9

func ImportColumn(key string, parent *jsonschema.Schema, coll *jsonschema.Collection, args *metamodel.Args) (*model.Column, error)

func ImportEnum added in v1.7.9

func ImportEnum(sch *jsonschema.Schema, coll *jsonschema.Collection, args *metamodel.Args) (*enum.Enum, error)

func ImportModel added in v1.7.9

func ImportModel(sch *jsonschema.Schema, coll *jsonschema.Collection, args *metamodel.Args) (*model.Model, error)

func ImportType added in v1.7.9

func ImportType(sch *jsonschema.Schema, coll *jsonschema.Collection, args *metamodel.Args) (*types.Wrapped, error)

func LoadSchemas added in v1.7.5

func LoadSchemas(
	ctx context.Context, key string, args *metamodel.Args, extraPaths []string, logger util.Logger, filter ...string,
) (*jsonschema.Collection, error)

func ToJSONType added in v1.7.10

func ToJSONType(v types.Type) string

func ValueFromAny added in v1.7.8

func ValueFromAny(x any) (*enum.Value, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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