Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OpenApiSpec ¶
type OpenApiSpec struct {
BaseURL string `yaml:"baseUrl"`
Paths map[string]map[string]Operation `yaml:"paths"`
}
func Load ¶
func Load(filename string) (*OpenApiSpec, error)
type Operation ¶
type Operation struct {
Summary string `yaml:"summary"`
Parameters []Parameter `yaml:"parameters"`
RequestBody *RequestBody `yaml:"requestBody"`
Responses map[string]Response `yaml:"responses"`
}
type RequestBody ¶
Click to show internal directories.
Click to hide internal directories.