Documentation
¶
Index ¶
- func Err(n *yaml.Node, msg string) error
- func FillMethodsNames(methods []Method) error
- func NodeComment(n *yaml.Node) string
- func NodeKind(k yaml.Kind) string
- func PrettyPrint(data interface{}) error
- func PrintNode(tab string, n *yaml.Node)
- func PrintPair(pair *NodePair)
- func PrintSchema(tab string, s Schema)
- func ResolveEmbeds(doc *Document) error
- func SnakeToUpper(s string) string
- type API
- type Comment
- type Document
- type Method
- type NodePair
- type Request
- type Response
- type ScalarType
- type Schema
- func MergeFields(prior, minor []Schema) []Schema
- func MergeParams(prior, minor []Schema) []Schema
- func ParseBody(p *NodePair) (*Schema, error)
- func ParseHeaders(p *NodePair) ([]Schema, error)
- func ParseParams(p *NodePair) ([]Schema, error)
- func ParsePathParams(path string) (string, []Schema)
- func ParseQuery(p *NodePair) ([]Schema, error)
- func ParseSchema(p *NodePair) (Schema, error)
- func ParseSchemas(n *yaml.Node) ([]Schema, error)
- type Settings
- type Tag
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FillMethodsNames ¶
func NodeComment ¶
func PrettyPrint ¶
func PrettyPrint(data interface{}) error
func PrintSchema ¶
func ResolveEmbeds ¶
func SnakeToUpper ¶
Types ¶
type Comment ¶
func ParseComment ¶
type Document ¶
func ParseDocument ¶
type Method ¶
type Request ¶
func MergeRequest ¶
type Response ¶
func MergeResponse ¶
type ScalarType ¶
type ScalarType struct {
Type Type
Format string
Optional bool
IsArray bool
Description string
Example string
}
func ParseScalarType ¶
func ParseScalarType(n *yaml.Node) (ScalarType, error)
type Schema ¶
type Schema struct {
Name string
Type Type
Format string
IsArray bool
Optional bool
Description string
Example string
Embeds []Type
Fields []Schema
}
func MergeFields ¶
func MergeParams ¶
func ParseHeaders ¶
func ParseParams ¶
func ParsePathParams ¶
func ParseQuery ¶
func ParseSchema ¶
Click to show internal directories.
Click to hide internal directories.