generator

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

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

Generator handles the generation of OpenAPI specifications

func NewGenerator

func NewGenerator(outputDir string) *Generator

NewGenerator creates a new OpenAPI specification generator

func (*Generator) Generate

func (g *Generator) Generate(exchange, version, title, apiType string, servers []string) error

Generate creates an OpenAPI specification from parsed endpoints

func (*Generator) GenerateEndpoints

func (g *Generator) GenerateEndpoints(exchange, version, apiType string, endpoints []parser.Endpoint) error

GenerateEndpoints generates an OpenAPI specification for each endpoint

Jump to

Keyboard shortcuts

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