factories

package
v0.0.0-...-08a7446 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddOperationToPathItem

func AddOperationToPathItem(item *openapi3.PathItem, method string, operation *openapi3.Operation)

func AddPath

func AddPath(paths openapi3.Paths, path string, method string, operation *openapi3.Operation)

func BuildForm

func BuildForm(body string) (*openapi3.Schema, error)

func BuildMultiPart

func BuildMultiPart(body string, mediaTypeParams map[string]string) (*openapi3.Schema, error)

func BuildParams

func BuildParams(url string, path string, log types.Log, logger log.Log) []*openapi3.ParameterRef

func BuildRequest

func BuildRequest(raw []byte, contentType string, log types.Log) *openapi3.RequestBodyRef

func BuildResponse

func BuildResponse(raw string, log types.Log) *openapi3.ResponseRef

func BuildResponses

func BuildResponses(raw string, log types.Log) openapi3.Responses

func BuildSchema

func BuildSchema(value interface{}) (*openapi3.Schema, error)

func BuildSpecification

func BuildSpecification(name string, version string) *openapi3.T

func CloneSpecification

func CloneSpecification(specification *openapi3.T, paths pathtrie.PathTrie) *openapi3.T

func CreateParameterizedPath

func CreateParameterizedPath(path string) string

func IsApplicationJSONMediaType

func IsApplicationJSONMediaType(mediaType string) bool

func MergeParams

func MergeParams(operation *openapi3.Operation, url string, path string, log types.Log, logger log.Log) bool

func MergeRequest

func MergeRequest(operation *openapi3.Operation, raw []byte, contentType string, log types.Log) (bool, error)

func MergeResponse

func MergeResponse(raw string, log types.Log, responseRef *openapi3.ResponseRef) (bool, error)

func MergeResponses

func MergeResponses(operation *openapi3.Operation, raw string, log types.Log) (bool, error)

func MergeSchema

func MergeSchema(value interface{}, schema *openapi3.Schema) (*openapi3.Schema, error)

func MergeSchemas

func MergeSchemas(destination *openapi3.Schema, source *openapi3.Schema) error

func UpdateSpecification

func UpdateSpecification(specification *openapi3.T, paths pathtrie.PathTrie)

Types

type PathParam

type PathParam struct {
	*spec.Parameter
}

Jump to

Keyboard shortcuts

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