vjsonschema

package
v1.9.7 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSONSchemaTable

func JSONSchemaTable(schemata metaschema.SchemaTestFiles, showContent bool) string

func RenderExtra

func RenderExtra(as *app.State, sch *jsonschema.Schema, result any, ps *cutil.PageState) string

func RenderResult

func RenderResult(
	baseURL string, x any, sch *jsonschema.Schema, oldResult any, oldDiffs util.Diffs, newResult any, newDiffs util.Diffs, ps *cutil.PageState,
) string

func StreamJSONSchemaTable

func StreamJSONSchemaTable(qw422016 *qt422016.Writer, schemata metaschema.SchemaTestFiles, showContent bool)

func StreamRenderExtra

func StreamRenderExtra(qw422016 *qt422016.Writer, as *app.State, sch *jsonschema.Schema, result any, ps *cutil.PageState)

func StreamRenderResult

func StreamRenderResult(qw422016 *qt422016.Writer,
	baseURL string, x any, sch *jsonschema.Schema, oldResult any, oldDiffs util.Diffs, newResult any, newDiffs util.Diffs, ps *cutil.PageState,
)

func WriteJSONSchemaTable

func WriteJSONSchemaTable(qq422016 qtio422016.Writer, schemata metaschema.SchemaTestFiles, showContent bool)

func WriteRenderExtra

func WriteRenderExtra(qq422016 qtio422016.Writer, as *app.State, sch *jsonschema.Schema, result any, ps *cutil.PageState)

func WriteRenderResult

func WriteRenderResult(qq422016 qtio422016.Writer,
	baseURL string, x any, sch *jsonschema.Schema, oldResult any, oldDiffs util.Diffs, newResult any, newDiffs util.Diffs, ps *cutil.PageState,
)

Types

type CollectionDetail

type CollectionDetail struct {
	layout.Basic
	BaseURL    string
	Args       *metamodel.Args
	Collection *jsonschema.Collection
	Unrelated  jsonschema.Schemas
	OldResults *metamodel.Args
	NewResults *metamodel.Args
}

func (*CollectionDetail) Body

func (p *CollectionDetail) Body(as *app.State, ps *cutil.PageState) string

func (*CollectionDetail) StreamBody

func (p *CollectionDetail) StreamBody(qw422016 *qt422016.Writer, as *app.State, ps *cutil.PageState)

func (*CollectionDetail) WriteBody

func (p *CollectionDetail) WriteBody(qq422016 qtio422016.Writer, as *app.State, ps *cutil.PageState)

type EnumDetail

type EnumDetail struct {
	layout.Basic
	BaseURL    string
	Enum       *enum.Enum
	Collection *jsonschema.Collection
	Result     *enum.Enum
}

func (*EnumDetail) Body

func (p *EnumDetail) Body(as *app.State, ps *cutil.PageState) string

func (*EnumDetail) StreamBody

func (p *EnumDetail) StreamBody(qw422016 *qt422016.Writer, as *app.State, ps *cutil.PageState)

func (*EnumDetail) WriteBody

func (p *EnumDetail) WriteBody(qq422016 qtio422016.Writer, as *app.State, ps *cutil.PageState)

type ModelDetail

type ModelDetail struct {
	layout.Basic
	BaseURL    string
	Model      *model.Model
	Collection *jsonschema.Collection
	Result     *model.Model
}

func (*ModelDetail) Body

func (p *ModelDetail) Body(as *app.State, ps *cutil.PageState) string

func (*ModelDetail) StreamBody

func (p *ModelDetail) StreamBody(qw422016 *qt422016.Writer, as *app.State, ps *cutil.PageState)

func (*ModelDetail) WriteBody

func (p *ModelDetail) WriteBody(qq422016 qtio422016.Writer, as *app.State, ps *cutil.PageState)

type SchemaDetail

type SchemaDetail struct {
	layout.Basic
	Schema      *metaschema.SchemaTestFile
	ShowContent bool
}

func (*SchemaDetail) Body

func (p *SchemaDetail) Body(as *app.State, ps *cutil.PageState) string

func (*SchemaDetail) StreamBody

func (p *SchemaDetail) StreamBody(qw422016 *qt422016.Writer, as *app.State, ps *cutil.PageState)

func (*SchemaDetail) WriteBody

func (p *SchemaDetail) WriteBody(qq422016 qtio422016.Writer, as *app.State, ps *cutil.PageState)

type SchemaList

type SchemaList struct {
	layout.Basic
	Schemata    metaschema.SchemaTestFiles
	ShowContent bool
}

func (*SchemaList) Body

func (p *SchemaList) Body(as *app.State, ps *cutil.PageState) string

func (*SchemaList) StreamBody

func (p *SchemaList) StreamBody(qw422016 *qt422016.Writer, as *app.State, ps *cutil.PageState)

func (*SchemaList) WriteBody

func (p *SchemaList) WriteBody(qq422016 qtio422016.Writer, as *app.State, ps *cutil.PageState)

Jump to

Keyboard shortcuts

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