Documentation
¶
Index ¶
- Constants
- type Args
- type Converter
- type Options
- type Parser
- func (p *Parser) GetDocument() *openapi3.T
- func (p *Parser) GetInfo() *openapi3.Info
- func (p *Parser) GetOperationID(path, method string, operation *openapi3.Operation) string
- func (p *Parser) GetPaths() *openapi3.Paths
- func (p *Parser) GetServers() []*openapi3.Server
- func (p *Parser) Parse(data []byte) error
- func (p *Parser) ParseFile(filePath string) error
- func (p *Parser) ParseFileV2(filePath string) error
- func (p *Parser) ParseV2(data []byte) error
Constants ¶
View Source
const ( PropertyTypeString propertyType = "string" PropertyTypeInteger propertyType = "integer" PropertyTypeNumber propertyType = "number" PropertyTypeBoolean propertyType = "boolean" PropertyTypeObject propertyType = "object" PropertyTypeArray propertyType = "array" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Converter ¶
type Converter struct {
// contains filtered or unexported fields
}
Converter represents an OpenAPI to MCP converter
func NewConverter ¶
NewConverter creates a new OpenAPI to MCP converter
type Parser ¶
type Parser struct {
// 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) ParseFileV2 ¶
Click to show internal directories.
Click to hide internal directories.