Versions in this module Expand all Collapse all v0 v0.1.0 Mar 12, 2022 Changes in this version + func Output(w io.Writer, g *Generator, pkg string) + type AdditionalProperties Schema + func (ap *AdditionalProperties) UnmarshalJSON(data []byte) error + type Field struct + Description string + JSONName string + Name string + Required bool + Type string + type Generator struct + Aliases map[string]Field + Structs map[string]Struct + func New(schemas ...*Schema) *Generator + func (g *Generator) CreateTypes() (err error) + type RefResolver struct + func NewRefResolver(schemas []*Schema) *RefResolver + func (r *RefResolver) GetPath(schema *Schema) string + func (r *RefResolver) GetSchemaByReference(schema *Schema) (*Schema, error) + func (r *RefResolver) Init() error + func (r *RefResolver) InsertURI(uri string, schema *Schema) error + type Schema struct + AdditionalProperties *AdditionalProperties + AdditionalPropertiesBool *bool + AllOf []*Schema + AnyOf []*Schema + Default interface{} + Definitions map[string]*Schema + Description string + Examples []interface{} + GeneratedType string + ID04 string + ID06 string + Items *Schema + JSONKey string + NameCount int + OneOf []*Schema + Parent *Schema + PathElement string + Properties map[string]*Schema + Reference string + Required []string + SchemaType string + Title string + TypeValue interface{} + func Parse(schema string, uri *url.URL) (*Schema, error) + func ParseWithSchemaKeyRequired(schema string, uri *url.URL, schemaKeyRequired bool) (*Schema, error) + func ReadInputFiles(inputFiles []string, schemaKeyRequired bool) ([]*Schema, error) + func (schema *Schema) FixMissingTypeValue() + func (schema *Schema) GetRoot() *Schema + func (schema *Schema) ID() string + func (schema *Schema) Init() + func (schema *Schema) IsRoot() bool + func (schema *Schema) MultiType() ([]string, bool) + func (schema *Schema) Type() (firstOrDefault string, multiple bool) + type Struct struct + AdditionalType string + Description string + Fields map[string]Field + GenerateCode bool + ID string + Name string