swaggercombine

package
v29.0.0-...-77b665f Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: Apache-2.0 Imports: 9 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 {
	// contains filtered or unexported fields
}

Config represent swagger-combine config.

func New

func New(title, name string) *Config

New create a mew swagger combine config.

func (*Config) AddSpec

func (c *Config) AddSpec(id, path string, makeUnique bool) error

AddSpec adds a new OpenAPI spec to Config by path in the fs and unique id of spec.

func (*Config) Combine

func (c *Config) Combine(out string) error

Combine combines openapi specs into one and saves to out path.

Jump to

Keyboard shortcuts

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