package
0.0.0-20210908200449-4d3e907a00c1
Repository: https://github.com/brainicorn/jsonschemagen.git
Documentation: pkg.go.dev

# Functions

FromJSON returns a JSONSchema object from the given json bytes.
NewArraySchema creates a new array schema.
NewBasicSchema creates a new BasicSchema.
NewBoolOrSchema creates a *BoolOrSchema based on the given interface.
NewMapSchema creates a new object schema with additionalProperties set to true.
NewNumericSchema creates a new numeric schema.
NewObjectSchema creates a new object schema.
NewSimpleSchema creates a simple schema with the specified jsonType.
NewStringOrArray creates a *StringOrArray based on the given interface.
NewStringSchema creates a new string schema.

# Constants

DefinitionRoot is the root of the definition ref.
SchemaTypeArray is the array type.
SchemaTypeBoolean is the boolean type.
SchemaTypeInteger is the integer type.
SchemaTypeNumber is the number type.
SchemaTypeObject is the object type.
SchemaTypeString is the string type.
SpecVersionCurrent is the lastest spec.
SpecVersionCurrentHyper is the latest hyper spec.
SpecVersionDraftV4 is the draft-04 spec.
SpecVersionDraftV4Hyper is the draft-04 hyper spec.

# Structs

BoolOrSchema holds a bool or a JSONSchema for values that can take either.
StringOrArray holds a string or a slice of strings for values that can take either.

# Interfaces

ArraySchema represents the schema for a JSON array.
JSONSchema is the base interface that represents common json-schema attributes.
NumericSchema represents the schema for a JSON number.
ObjectSchema represents a JSON object schema.
SimpleSchema is the schema for simple JSON types such as a string, number or boolean.
StringSchema represents the schema for a JSON string.

# Type aliases

SpecVersion is the type for specifying which spec version you adhere to.