operations

package
v0.0.0-...-2b8a88d Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtensionData

type ExtensionData map[string]interface{}

type OpenAPI

type OpenAPI = *openapi.OpenAPI

type Operation

type Operation struct {
	openapi3.Operation
}

type Option

type Option func(OpenAPI, Operation) (Operation, error)

func DefaultJSONResponse

func DefaultJSONResponse(description string, model interface{}) Option

func Deprecated

func Deprecated() Option

func Extensions

func Extensions(data ExtensionData) Option

func FileResponse

func FileResponse(code int, description string) Option

func FormBody

func FormBody(description string, model interface{}) Option

func ID

func ID(id string) Option

func JSONBody

func JSONBody(description string, model interface{}) Option

func JSONBodyRequired

func JSONBodyRequired(description string, model interface{}) Option

func JSONResponse

func JSONResponse(code int, description string, model interface{}) Option

func NoSecurity

func NoSecurity() Option

NoSecurity sets the security options to an empty array for this operation

func Params

func Params(model interface{}) Option

func Security

func Security(name string, scopes ...string) Option

Security sets the security for the operation

func Summary

func Summary(summary string) Option

func Tags

func Tags(tags ...string) Option

type Options

type Options []Option

Jump to

Keyboard shortcuts

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