Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CompositeGenerator ¶
type CompositeGenerator []SyntaxGenerator
CompositeGenerator represents a composite generator
func (CompositeGenerator) Generate ¶
func (items CompositeGenerator) Generate(spec *codedom.SpecDescriptor) error
Generate generates the source code
type EditorConfig ¶
EditorConfig represents the editor config
type Generator ¶
type Generator struct { Path string Generator SyntaxGenerator Resolver SpecResolver }
Generator generates the code
type SpecResolver ¶
type SpecResolver interface { // Resolve resolves the spec Resolve(spec *openapi3.Swagger) (*codedom.SpecDescriptor, error) }
SpecResolver resolves the spec
type SyntaxGenerator ¶
type SyntaxGenerator interface { // Generate generates a source code from spec Generate(spec *codedom.SpecDescriptor) error }
SyntaxGenerator generates the code
type ViewerConfig ¶
ViewerConfig represents the viewer config
Click to show internal directories.
Click to hide internal directories.