Documentation ¶
Index ¶
- func IsMediaTypeJson(mediaType string) bool
- func LoadSwagger(filePath string) (swagger *openapi3.T, err error)
- func LoadSwaggerWithCircularReferenceCount(filePath string, _ int) (swagger *openapi3.T, err error)deprecated
- func ParseCommandLineList(input string) []string
- func ParseCommandlineMap(src string) (map[string]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsMediaTypeJson ¶
func LoadSwaggerWithCircularReferenceCount
deprecated
Deprecated: In kin-openapi v0.126.0 (https://github.com/getkin/kin-openapi/tree/v0.126.0?tab=readme-ov-file#v01260) the Circular Reference Counter functionality was removed, instead resolving all references with backtracking, to avoid needing to provide a limit to reference counts.
This is now identital in method as `LoadSwagger`.
func ParseCommandLineList ¶
ParseCommandLineList parses comma separated string lists which are passed in on the command line. Spaces are trimmed off both sides of result strings.
func ParseCommandlineMap ¶
The input mapping is expressed on the command line as `key1:value1,key2:value2,...` We parse it here, but need to keep in mind that keys or values may contain commas and colons. We will allow escaping those using double quotes, so when passing in "key1":"value1", we will not look inside the quoted sections.
Types ¶
This section is empty.