schema

package
v0.1.80 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2024 License: MIT Imports: 10 Imported by: 2

README

JSON schema generator

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSchema

func CreateSchema(m interface{}) (jsonschema.Schema, error)

func CreateSchemaAndData added in v0.1.35

func CreateSchemaAndData(m interface{}) ([]byte, []byte, error)

func GetDefinitionName added in v0.1.78

func GetDefinitionName(t reflect.Type) string

func ParseSchema added in v0.1.71

func ParseSchema(s []byte, confDefs map[string]*ajson.Node) error

func UpdateWithConfigurableDefinitions added in v0.1.71

func UpdateWithConfigurableDefinitions(realSchema []byte, configurableDefinitionNodes map[string]*ajson.Node) ([]byte, error)

Types

type Processor added in v0.1.78

type Processor interface {
	Process(s *jsonschema.Schema)
}

Jump to

Keyboard shortcuts

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