Documentation
¶
Index ¶
- Constants
- func ExportAny(sch *jsonschema.Schema, coll *jsonschema.Collection, args *metamodel.Args) (any, error)
- func ExportColumn(col *model.Column, coll *jsonschema.Collection, args *metamodel.Args) (*jsonschema.Schema, error)
- func ExportEnum(x *enum.Enum, sch *jsonschema.Collection, args *metamodel.Args) (*jsonschema.Schema, error)
- func ExportModel(x *model.Model, coll *jsonschema.Collection, arg *metamodel.Args) (*jsonschema.Schema, error)
- func ExportType(typ types.Type, coll *jsonschema.Collection, args *metamodel.Args) (*jsonschema.Schema, error)
- func FromJSONType(s string, ref string) *types.Wrapped
- func ImportArgs(coll *jsonschema.Collection, args *metamodel.Args) (*metamodel.Args, error)
- func ImportColumn(key string, parent *jsonschema.Schema, coll *jsonschema.Collection, ...) (*model.Column, error)
- func ImportEnum(sch *jsonschema.Schema, coll *jsonschema.Collection, args *metamodel.Args) (*enum.Enum, error)
- func ImportModel(sch *jsonschema.Schema, coll *jsonschema.Collection, args *metamodel.Args) (*model.Model, error)
- func ImportType(sch *jsonschema.Schema, coll *jsonschema.Collection, args *metamodel.Args) (*types.Wrapped, error)
- func LoadSchemas(ctx context.Context, key string, args *metamodel.Args, extraPaths []string, ...) (*jsonschema.Collection, error)
- func ToJSONType(v types.Type) string
- func ValueFromAny(x any) (*enum.Value, error)
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 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 ToJSONType ¶ added in v1.7.10
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.