typescript

package
v0.0.0-...-cb1c60c Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenFunction

func GenFunction(f ast.Function) string

func GenOpRequestCode

func GenOpRequestCode(
	opType string,
	pathUrl string,
	op *v3.Operation,
	resolve ResolveSchemaRef,
	reqBodySchemaName string,
) []byte

func GenSchema

func GenSchema(
	schemaName string,
	op *v3.Operation,
	schema *base.SchemaProxy,
	resolve ResolveSchemaRef,
) (fileName string, content []byte)

func GenSchema2

func GenSchema2(
	schemaName string,
	op *v3.Operation,
	schema *base.SchemaProxy,
	resolve ResolveSchemaByName,
) (fileName string, content []byte)

Types

type PathItemResult

type PathItemResult struct {
	FileName string
	Content  []byte
}

func GenGetRequest

func GenGetRequest(pathUrl string, op *v3.Operation, resolve ResolveSchemaRef) *PathItemResult

func GenPatchRequest

func GenPatchRequest(pathUrl string, op *v3.Operation, resolve ResolveSchemaRef) *PathItemResult

func GenPathItem

func GenPathItem(pathUrl string, pathItem *v3.PathItem, resolve ResolveSchemaRef) []*PathItemResult

type ResolveSchemaByName

type ResolveSchemaByName = func(op *v3.Operation, schemaName string) string

type ResolveSchemaRef

type ResolveSchemaRef = func(op *v3.Operation, schema *base.SchemaProxy) string

Resolves a Schema Ref and returns back the canonical name

Jump to

Keyboard shortcuts

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