Skip to content

Exposing ZogSchema #186

@pcfreak30

Description

@pcfreak30

This may likely be a breaking change but no external schema can be created by using any existing as a template. Im aware this is being though about in other approaches but we currently cannot implement ZogSchema/ComplexSchema

Cannot use (*StatusSliceSchema)(nil) (type *StatusSliceSchema) as the type zog.ZogSchema
Type cannot implement zog.ZogSchema as it has a non-exported method and is defined in a different package
type ZogSchema interface {
	process(ctx *p.SchemaCtx)
	validate(ctx *p.SchemaCtx)
	getType() zconst.ZogType
	setCoercer(c CoercerFunc)
}

This prevents advanced use cases...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions