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 GenerateExample(node *SchemaNode) interface{}
- 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 ResolveExternalRef(ref string, baseDir string) map[string]interface{}
- func ResolveRef(spec map[string]interface{}, ref string) map[string]interface{}
- func ResolveRefWithContext(spec map[string]interface{}, ref string) (map[string]interface{}, 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)
- func XmlFromObject(obj map[string]interface{}) string
- type Result
- type SchemaNode
- 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 GenerateExample ¶
func GenerateExample(node *SchemaNode) interface{}
func GenerateRequests ¶
func MakeRequest ¶
func PrintSpecInfo ¶
func PrintSpecInfo(spec map[string]interface{})
func ResolveExternalRef ¶
func ResolveRef ¶
func ResolveRefWithContext ¶
func ResolveRefWithContext(spec map[string]interface{}, ref string) (map[string]interface{}, map[string]interface{})
ResolveRefWithContext resolves a reference and returns both the resolved schema and the spec it came from
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)
func XmlFromObject ¶
Types ¶
type SchemaNode ¶
type SchemaNode struct {
Type string
Properties map[string]*SchemaNode
Items *SchemaNode
Required map[string]bool
Enum []interface{}
Example interface{}
Ref string
OneOf []*SchemaNode
AnyOf []*SchemaNode
AdditionalProperties *SchemaNode
}
func ExpandSchema ¶
Click to show internal directories.
Click to hide internal directories.