openapi

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2022 License: MIT Imports: 13 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 {
	Out         *os.File
	CRDFiles    []*os.File
	Err         io.Writer
	Title       string
	Version     string
	Pretty      bool
	Indent      int
	Description string
}

func (*Config) Complete

func (c *Config) Complete() *Config

func (Config) New

func (c Config) New() (Converter, error)

type Converter

type Converter struct {
	Out         *os.File
	Err         io.Writer
	CRDReader   []*os.File
	Title       string
	Version     string
	Pretty      bool
	Indent      int
	Description string
}

Converter crd to openapi json file

func (*Converter) Complete

func (c *Converter) Complete(swagger *spec.Swagger)

Complete fill some fields

func (*Converter) Do

func (c *Converter) Do() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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