jsonschema

package
v0.0.0-...-35c18bc Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONSchemaGen

type JSONSchemaGen struct {
	gengo.SnippetWriter
	Scanner
	// contains filtered or unexported fields
}

func (*JSONSchemaGen) GenType

func (g *JSONSchemaGen) GenType(c *gengo.Context, t *Type) error

func (*JSONSchemaGen) GenerateType

func (g *JSONSchemaGen) GenerateType(c *gengo.Context, named *types.Named) error

func (*JSONSchemaGen) Init

func (*JSONSchemaGen) Name

func (g *JSONSchemaGen) Name() string

func (JSONSchemaGen) New

func (*JSONSchemaGen) ValueLitAndGenSideTypes

func (g *JSONSchemaGen) ValueLitAndGenSideTypes(c *gengo.Context, d *gengo.Dumper, s interface{}) (string, error)

type Scanner

type Scanner struct {
	// contains filtered or unexported fields
}

func (*Scanner) Init

func (g *Scanner) Init(c *gengo.Context)

func (*Scanner) SchemaFromType

func (g *Scanner) SchemaFromType(ctx context.Context, pos token.Pos, tpe types.Type, def bool) (s *jsonschema.Schema)

type Type

type Type struct {
	PkgPath  string
	Name     string
	Pos      token.Pos
	T        types.Type
	Shadowed *Type
}

func (*Type) ID

func (t *Type) ID() string

func (*Type) RealPkgPath

func (t *Type) RealPkgPath() string

func (*Type) RealPos

func (t *Type) RealPos() token.Pos

func (*Type) RealType

func (t *Type) RealType() types.Type

Jump to

Keyboard shortcuts

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