generator

package
v0.0.0-...-2adba4b Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Input         string
	Output        string
	OutputPackage string
}

type Generator

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

func New

func New(definitionLoader OpenAPIDefinitionLoader, mapper OpenAPIDefinitionMapper, exporter SchemaExporter) *Generator

func (*Generator) Generate

func (g *Generator) Generate() error

type OpenAPIDefinitionLoader

type OpenAPIDefinitionLoader interface {
	Load() (map[string]common.OpenAPIDefinition, error)
}

type OpenAPIDefinitionMapper

type OpenAPIDefinitionMapper interface {
	Map(map[string]common.OpenAPIDefinition) map[string]map[string]*schema.Schema
}

type SchemaExporter

type SchemaExporter interface {
	Export(map[string]map[string]*schema.Schema) error
}

Jump to

Keyboard shortcuts

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