Documentation ¶
Index ¶
Constants ¶
View Source
const ( TypeObject = Type("object") TypeArray = Type("array") TypeBoolean = Type("boolean") TypeInteger = Type("integer") TypeNumber = Type("number") TypeString = Type("string") )
Type :
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Enum ¶
type Enum struct { Name string `json:"name"` Description string `json:"description,omitempty"` Value string `json:"value"` XGoName string `json:"x-goname"` Pos token.Pos `json:"-"` // id }
Enum :
type Schema ¶
type Schema struct { Name string `json:"name"` Description string `json:"description,omitempty"` Type Type `json:"type"` Properties []SchemaProperty `json:"properties,omitempty"` Required []string `json:"required,omitempty"` XGoName string `json:"x-goname"` XGoType string `json:"x-gotype"` Enum []Enum `json:"enum,omitempty"` // Pos token.Pos `json:"-"` // id }
Schema :
func ParsePackageInfo ¶
func ParsePackageInfo(info *loader.PackageInfo, findDescription bool) ([]*Schema, error)
ParsePackageInfo :
func ParseStruct ¶
func ParseStruct(info *loader.PackageInfo, sorted bypos.Sorted, ob types.Object, findDescription bool) *Schema
ParseStruct :
Click to show internal directories.
Click to hide internal directories.