Documentation
¶
Index ¶
- type Parser
- func (p *Parser) GetDocument() *openapi3.T
- func (p *Parser) GetInfo() *openapi3.Info
- func (p *Parser) GetOperationID(path string, method string, operation *openapi3.Operation) string
- func (p *Parser) GetPaths() map[string]*openapi3.PathItem
- func (p *Parser) GetServers() []*openapi3.Server
- func (p *Parser) Parse(data []byte) error
- func (p *Parser) ParseFile(filePath string) error
- func (p *Parser) SetValidation(validate bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct {
ValidateDocument bool
// contains filtered or unexported fields
}
Parser represents an OpenAPI parser
func (*Parser) GetDocument ¶
GetDocument returns the parsed OpenAPI document
func (*Parser) GetOperationID ¶
GetOperationID generates an operation ID if one is not provided
func (*Parser) GetServers ¶
GetServers returns all servers in the OpenAPI document
func (*Parser) SetValidation ¶
SetValidation sets whether to validate the OpenAPI document
Click to show internal directories.
Click to hide internal directories.