Versions in this module Expand all Collapse all v0 v0.1.1 Jul 27, 2023 Changes in this version type Body + Ref string + Sum string type Comps + Desc string + Ref string + Sum string type Contact + Desc string + Ref string + Sum string type Discr + Desc string + Ref string + Sum string type Doc + Desc string + Ref string + Sum string type Encoding + Desc string + Ref string + Sum string type Example + Ref string type ExtDoc + Ref string + Sum string type Flow + Desc string + Ref string + Sum string type Flows + Desc string + Ref string + Sum string type Head + Ref string + Sum string type Info + Ref string type License + Desc string + Ref string + Sum string type Link + Ref string + Sum string type MediaType + Desc string + Ref string + Sum string type Op + Ref string type Path + Ref string type Resp + Ref string + Sum string type Schema + Ref string + Sum string type SecScheme + Ref string + Sum string type Server + Ref string + Sum string type Tag + Ref string + Sum string type Var + Ref string + Sum string type Xml + Desc string + Ref string + Sum string v0.1.0 Nov 26, 2021 Changes in this version + const ConTypeJson + const FormatBin + const FormatByte + const FormatDate + const FormatDateTime + const FormatDuration + const FormatEmail + const FormatFloat32 + const FormatFloat64 + const FormatInt32 + const FormatInt64 + const FormatPassword + const FormatTime + const FormatUuid + const InCookie + const InHeader + const InPath + const InQuery + const TypeArr + const TypeBool + const TypeInt + const TypeNull + const TypeNum + const TypeObj + const TypeStr + const Ver + type Any interface + type Anys map[string]Any + type Bodies map[string]Body + type Body struct + Cont MediaTypes + Desc string + Requ bool + func (self Body) Opt() *Body + type Callback map[string]string + type Callbacks map[string]Callback + type Comps struct + Callbacks Callbacks + Examples Examples + Heads Heads + Links Links + Params Params + Paths Paths + Reqs Bodies + Resps Resps + Schemas Schemas + SecSchemes SecSchemes + type Contact struct + Email string + Name string + Url string + type Discr struct + Map map[string]string + Prop string + type Doc struct + Comps Comps + ExtDoc *ExtDoc + Info *Info + JsonSchema string + Openapi string + Paths Paths + Security []SecReq + Servers []Server + Tags []Tag + Webhooks Paths + func (self *Doc) DerefSchema(sch Schema) (Schema, bool) + func (self *Doc) GotCompSchema(name string) (Schema, bool) + func (self *Doc) GotSchema(refPath string) (Schema, bool) + func (self *Doc) JsonBody(typ interface{}) Body + func (self *Doc) JsonBodyOpt(typ interface{}) *Body + func (self *Doc) RespsOkJson(typ interface{}) Resps + func (self *Doc) Route(path, meth string, op Op) *Doc + func (self *Doc) Sch(typ interface{}) Schema + func (self *Doc) SchemaMedia(typ interface{}) MediaType + func (self *Doc) TypeSchema(typ r.Type) (sch Schema) + type Encoding struct + ConType string + Explode bool + Head Heads + Reserved bool + Style string + type Encodings map[string]Encoding + type Example struct + Desc string + ExVal string + Sum string + Val string + type Examples map[string]Example + type ExtDoc struct + Desc string + Url string + type Flow struct + AuthUrl string + RefreshUrl string + Scopes map[string]string + TokenUrl string + type Flows struct + AuthCode Flow + ClientCred Flow + Implicit Flow + Password Flow + type Head struct + Cont MediaTypes + Depr bool + Desc string + Empty bool + Example Any + Examples Examples + Explode bool + Requ bool + Reserved bool + Schema *Schema + Style string + type Heads map[string]Head + type Info struct + Contact *Contact + Desc string + License *License + Sum string + Terms string + Title string + Ver string + type License struct + Ident string + Name string + Url string + type Link struct + Desc string + OpId string + OpRef string + Params Anys + ReqBody Any + Server *Server + type Links map[string]Link + type MediaType struct + Encoding Encodings + Example Any + Examples Examples + Schema Schema + type MediaTypes map[string]MediaType + type Op struct + Callbacks Callbacks + Depr bool + Desc string + ExtDoc *ExtDoc + OpId string + Params []Param + ReqBody *Body + Resps Resps + Sec []SecReq + Servers []Server + Sum string + Tags []Tag + type Param struct + In string + Name string + type Params map[string]Param + type Path struct + Delete *Op + Desc string + Get *Op + Head *Op + Options *Op + Params []Param + Patch *Op + Post *Op + Put *Op + Servers []Server + Sum string + Trace *Op + func (self *Path) Method(meth string, op Op) *Path + type Paths map[string]Path + func (self *Paths) Init() Paths + func (self Paths) Route(path, meth string, op Op) Paths + type Ref struct + Desc string + Ref string + Sum string + func RefFrom(val string) Ref + func SchemaRef(name string) Ref + func (self Ref) HasRef() bool + type Resp struct + Cont MediaTypes + Desc string + Head Heads + Links Links + type Resps map[string]Resp + type Schema struct + AddProps *Schema + AllOf []Schema + AnyOf []Schema + Const Any + ContEnc string + ContMedia string + ContSchema string + Contains *Schema + Default Any + DepRequ map[string][]string + DepSchemas Schemas + Depr bool + Desc string + Discr *Discr + Else *Schema + Enum []string + Example Any + Examples Examples + ExclMin *int64 + ExlcMax *int64 + ExtDoc *ExtDoc + Format string + If *Schema + Items *Schema + Max *int64 + MaxCont uint64 + MaxItems uint64 + MaxLen uint64 + MaxProps uint64 + Min *int64 + MinCont uint64 + MinItems uint64 + MinLen uint64 + MinProps uint64 + MulOf uint64 + Not *Schema + OneOf []Schema + PatProps Schemas + Pattern string + PrefixItems []Schema + PropNames *Schema + Props Schemas + Requ bool + Ronly bool + Then *Schema + Title string + Type []string + UnevalItems *Schema + UnevalProps *Schema + UniqItems bool + Wonly bool + Xml *Xml + func NullSchema(name string, inner Schema) Schema + func RefSchema(name string) Schema + func (self *Schema) Nullable() + func (self *Schema) TypeAdd(vals ...string) *Schema + func (self *Schema) TypeReplace(vals ...string) *Schema + func (self Schema) IsNullable() bool + func (self Schema) Opt() *Schema + func (self Schema) TypeHas(exp string) bool + func (self Schema) TypeIs(exp ...string) bool + func (self Schema) ValidTitle() string + type Schemas map[string]Schema + func (self *Schemas) Init() Schemas + type SecReq map[string][]string + type SecScheme struct + BearFormat string + Desc string + Flows *Flows + In string + Name string + OidUrl string + Scheme string + Type string + type SecSchemes map[string]SecScheme + type Server struct + Desc string + Url string + Vars Vars + type Tag struct + Desc string + ExtDoc *ExtDoc + Name string + type Var struct + Default string + Desc string + Enum []string + type Vars map[string]Var + type Xml struct + Attr bool + Name string + Nspace string + Prefix string + Wrap bool