openapi2word

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckMethod

func CheckMethod(method oas.HttpMethod) string

func CheckType

func CheckType(t string) string

Types

type Er

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

func NewEr

func NewEr(urls []string) (*Er, error)

func (*Er) Document

func (er *Er) Document() *document.Document

func (*Er) GenerateDoc

func (er *Er) GenerateDoc() error

func (*Er) GenerateGrid

func (er *Er) GenerateGrid(erTable *er.ERTable) error

func (*Er) GenerateService

func (er *Er) GenerateService(nd document.NumberingDefinition, erDatabase *er.ERDatabase) error

func (*Er) GenerateTable

func (er *Er) GenerateTable(nd document.NumberingDefinition, erTable *er.ERTable) error

type GenerateOpenAPIDoc

type GenerateOpenAPIDoc struct {
	HeadingLevel int
	ServiceName  string
	URL          *url.URL
	// contains filtered or unexported fields
}

func NewGenerateOpenAPIDoc

func NewGenerateOpenAPIDoc(serviceName string, u *url.URL, headingLevel int) *GenerateOpenAPIDoc

func (*GenerateOpenAPIDoc) GenTable

func (g *GenerateOpenAPIDoc) GenTable(pct float64, cellNames ...string) document.Table

func (*GenerateOpenAPIDoc) GenerateClientOpenAPIDoc

func (g *GenerateOpenAPIDoc) GenerateClientOpenAPIDoc(filename string) error

func (*GenerateOpenAPIDoc) GenerateEnum

func (g *GenerateOpenAPIDoc) GenerateEnum(enumType string, schema *oas.Schema) error

生成枚举

func (*GenerateOpenAPIDoc) GenerateOperationDoc

func (g *GenerateOpenAPIDoc) GenerateOperationDoc(operation *oas.Operation, url string, method oas.HttpMethod) error

func (*GenerateOpenAPIDoc) GenerateOperationInput

func (g *GenerateOpenAPIDoc) GenerateOperationInput(operation *oas.Operation) error

func (*GenerateOpenAPIDoc) GenerateOperationInputBodyStruct

func (g *GenerateOpenAPIDoc) GenerateOperationInputBodyStruct(referID string, schema *oas.Schema, first bool, addStructList ...string) error

func (*GenerateOpenAPIDoc) GenerateOperationInputOuthSchemaTable

func (g *GenerateOpenAPIDoc) GenerateOperationInputOuthSchemaTable(referIDs ...string) error

func (*GenerateOpenAPIDoc) GenerateOperationInputRequestBody_JSON

func (g *GenerateOpenAPIDoc) GenerateOperationInputRequestBody_JSON(mediaType *oas.MediaType) error

func (*GenerateOpenAPIDoc) GenerateOperationInputTableAddRow

func (g *GenerateOpenAPIDoc) GenerateOperationInputTableAddRow(table document.Table, schema *oas.Schema) error

func (*GenerateOpenAPIDoc) GenerateOperationOuthOutputSchemasProperties

func (g *GenerateOpenAPIDoc) GenerateOperationOuthOutputSchemasProperties(referIDs ...string) error

func (*GenerateOpenAPIDoc) GenerateOperationOutput

func (g *GenerateOpenAPIDoc) GenerateOperationOutput(response *oas.Response) error

func (*GenerateOpenAPIDoc) GenerateOperationOutputStruct_JSON

func (g *GenerateOpenAPIDoc) GenerateOperationOutputStruct_JSON(schema *oas.Schema) error

func (*GenerateOpenAPIDoc) GenerateOperationOutputTableAddRow

func (g *GenerateOpenAPIDoc) GenerateOperationOutputTableAddRow(table document.Table, schema *oas.Schema) ([]string, error)

func (*GenerateOpenAPIDoc) Load

func (g *GenerateOpenAPIDoc) Load()

func (*GenerateOpenAPIDoc) Output

func (g *GenerateOpenAPIDoc) Output(cwd string)

Jump to

Keyboard shortcuts

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