Documentation
¶
Index ¶
- Variables
- func BuildRequestsFromPaths(spec map[string]interface{}, client http.Client)
- func CheckAndConfigureProxy() (client http.Client)
- func CheckContentType(client http.Client, target string) string
- func CheckSecuritySchemes(spec map[string]interface{})
- func EnforceSingleContentType(newContentType string)
- func Execute()
- func ExtractSpecFromJS(bodyBytes []byte) []byte
- func GenerateRequests(bodyBytes []byte, client http.Client)
- func MakeRequest(client http.Client, method, target string, timeout int64, reqData io.Reader) ([]byte, string, int)
- func PrintSpecInfo(spec map[string]interface{})
- func SafelyUnmarshalSpec(data []byte) map[string]interface{}
- func SetScheme(swaggerURL string) (scheme string)
- func TrimHostScheme(apiTarget, fullUrlHost string) (host string)
- func UnmarshalSpec(bodyBytes []byte) (newDoc *openapi3.T)
- func WriteConvertedDefinitionFile(data []byte)
- type Result
- type VerboseResult
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Headers []string UserAgent string )
Functions ¶
func BuildRequestsFromPaths ¶
func CheckAndConfigureProxy ¶
func CheckSecuritySchemes ¶
func CheckSecuritySchemes(spec map[string]interface{})
func EnforceSingleContentType ¶
func EnforceSingleContentType(newContentType string)
func ExtractSpecFromJS ¶
func GenerateRequests ¶
func MakeRequest ¶
func PrintSpecInfo ¶
func PrintSpecInfo(spec map[string]interface{})
func SafelyUnmarshalSpec ¶
func TrimHostScheme ¶
TrimHostScheme trims the scheme from the provided URL if the '-T' flag is supplied to sj.
func UnmarshalSpec ¶
func WriteConvertedDefinitionFile ¶
func WriteConvertedDefinitionFile(data []byte)
Types ¶
Click to show internal directories.
Click to hide internal directories.