Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Document ¶
type Document struct {
FilePath string `json:"-" yaml:"-"`
Openapi string `json:"openapi,omitempty" yaml:"openapi,omitempty"`
Info info.Info `json:"info,omitempty" yaml:"info,omitempty"`
Servers []server.Server `json:"servers,omitempty" yaml:"servers,omitempty"`
Paths map[string]path.Path `json:"paths,omitempty" yaml:"paths,omitempty"`
Components *component.Components `json:"components,omitempty" yaml:"components,omitempty"`
Security *json.RawMessage `json:"security,omitempty" yaml:"security,omitempty"`
Tags []tag.Tag `json:"tags,omitempty" yaml:"tags,omitempty"`
ExternalDocs *json.RawMessage `json:"externalDocs,omitempty" yaml:"externalDocs,omitempty"`
}
func NewDocument ¶
func (*Document) GetComponentExample ¶
func (*Document) GetOperationsByTag ¶
func (doc *Document) GetOperationsByTag(tag string) (ops []operation.PathOperation)
func (*Document) UpdateInfo ¶
Click to show internal directories.
Click to hide internal directories.