Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IntersectionType ¶
type IntersectionType struct {
AllOf []Type
}
func (*IntersectionType) Kind ¶
func (*IntersectionType) Kind() Kind
func (*IntersectionType) TypeDefTo ¶
func (t *IntersectionType) TypeDefTo(w io.Writer)
type JSONSchemaOptions ¶
type JSONSchemaOptions struct {
Resolve func(ref string) *jsonschema.Schema
}
type NumberType ¶
func (*NumberType) Kind ¶
func (t *NumberType) Kind() Kind
func (*NumberType) TypeDefTo ¶
func (t *NumberType) TypeDefTo(w io.Writer)
type ObjectType ¶
type ObjectType struct { Embeds []Type Props map[string]Type Required []string AdditionalProp Type }
func (ObjectType) Kind ¶
func (ObjectType) Kind() Kind
func (*ObjectType) PropRequired ¶
func (t *ObjectType) PropRequired(prop string) bool
func (*ObjectType) TypeDefTo ¶
func (t *ObjectType) TypeDefTo(w io.Writer)
type StringType ¶
func (*StringType) Kind ¶
func (t *StringType) Kind() Kind
func (*StringType) TypeDefTo ¶
func (t *StringType) TypeDefTo(w io.Writer)
type TypeSystem ¶
func NewTypeSystem ¶
func NewTypeSystem() *TypeSystem
func (*TypeSystem) FromJSONSchema ¶
func (ts *TypeSystem) FromJSONSchema(schema *jsonschema.Schema, opts *JSONSchemaOptions) (tpe Type)
Click to show internal directories.
Click to hide internal directories.