vjsonschema

package
v1.9.8 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: MIT Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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