Versions in this module Expand all Collapse all v0 v0.2.0 Dec 14, 2023 v0.1.0 May 17, 2022 Changes in this version + type Components struct + Responses map[string]*Response + Schemas map[string]*Schema + type Info struct + NoAuth bool + Title string + Version string + type Media struct + Schema *Schema + func NewMedia(schema *Schema) *Media + func (m *Media) String(prefixSpacing int) string + type Openapi struct + Components *Components + Info *Info + PathItems map[string]map[string]*Operation + Servers []*Server + ServiceExtensions *pocket.ServiceExtensions + func FromProto(file *protogen.File, plugin *protogen.Plugin) (*Openapi, error) + func (o *Openapi) HasAuth() bool + func (o *Openapi) SecurityScheme(tabSize int) string + type Operation struct + Description string + Id string + Name string + Parameters []*Parameter + RequestBody *RequestBody + Responses map[string]*Response + SecuritySchemes []map[string][]string + Summary string + Tags []string + func (o *Operation) HasRequestBody() bool + func (o *Operation) ResponseErrorCodes() []string + func (o *Operation) Schemas() []string + type Parameter struct + Description string + Location string + Name string + Required bool + Schema *Schema + type RequestBody struct + Content map[string]*Media + Description string + Required bool + type Response struct + Content map[string]*Media + Description string + type Schema struct + Description string + Enum []string + Example string + Format string + Items *Schema + Maximum int + Minimum int + Properties map[string]*Schema + Ref string + Required []string + Type string + func NewSchema(options *SchemaOptions) *Schema + func (s *Schema) HasItems() bool + func (s *Schema) HasRequiredProperty() bool + func (s *Schema) IsRequired() bool + func (s *Schema) RefName() string + func (s *Schema) RequiredProperties() []*Schema + func (s *Schema) SchemaType() SchemaType + func (s *Schema) String(prefixSpacing int) string + type SchemaOptions struct + Description string + Enum []string + Example string + Format string + Items *Schema + Maximum int + Minimum int + Properties map[string]*Schema + Ref string + Required bool + Type SchemaType + type SchemaType int + const SchemaType_Array + const SchemaType_Bool + const SchemaType_Integer + const SchemaType_Number + const SchemaType_Object + const SchemaType_String + const SchemaType_Unspecified + func (s SchemaType) String() string + type Server struct + Description string + Url string + type Settings struct + Info *SettingsInfo + Servers []*SettingsServer + type SettingsInfo struct + Title string + Version string + type SettingsServer struct + Description string + URL string