Versions in this module Expand all Collapse all v0 v0.1.0 Jul 14, 2023 Changes in this version + type Component struct + Parameters map[string]*Parameter + Schemas map[string]*Schema + SecurityScheme sync.Map[string, *SecurityScheme] + func (this *Component) AddSecurityScheme(name string) *SecurityScheme + type Content struct + Schema *Schema + type MediaType struct + Schema *Schema + type Parameter struct + Deprecated bool + Description string + In string + Name string + Required bool + Schema *Schema + type Path struct + Get *PathItem + Post *PathItem + Upgrade *PathItem + type PathItem struct + Deprecated bool + Description string + Parameters []Parameter + RequestBody *RequestBody + Responses map[string]Response + Security Securities + Servers []Server + Summary string + func (this *PathItem) SetJWT(required bool) + type RequestBody struct + Content map[string]MediaType + Required bool + type Response struct + Content map[string]Content + Description string + type Schema struct + AdditionalProps *Schema + Default string + Description string + Enum []string + Example string + Format string + Items *Schema + Properties map[string]*Schema + Reference string + Required []string + Type string + type Securities []Security + func (this *Securities) Append(s Security) + type Security map[string]any + type SecurityScheme struct + BearerFormat string + Description string + In string + Name string + Scheme string + Type string + func (this *SecurityScheme) SetJWT() + type Server struct + Description string + URL string + type Service struct + Components Component + Info struct{ ... } + OpenAPI string + Paths map[string]*Path + func NewService(title string) *Service + func (this *Service) SchemaFromType(c ctx.C, t reflect.Type, tags *reflect.StructTag) (*Schema, error)