Versions in this module Expand all Collapse all v2 v2.0.1 Apr 10, 2026 Changes in this version + func Generate(outputPath string, title string, version string, routes []RouteInfo, ...) error + func RegisterDocsRoutes(r *router.Router, openAPIFilePath string) + type Components struct + SecuritySchemes map[string]SecurityScheme + type Document struct + Components *Components + Extra map[string]interface{} + Info Info + OpenAPI string + Paths map[string]PathItem + Tags []Tag + type Info struct + Title string + Version string + type MediaType struct + Schema Schema + type Operation struct + Description string + OperationID string + Parameters []Parameter + RequestBody *RequestBody + Responses map[string]ResponseEntry + Security []SecurityRequirement + Summary string + Tags []string + type Parameter struct + Description string + In string + Name string + Required bool + Schema Schema + type PathItem map[string]Operation + type RequestBody struct + Content map[string]MediaType + Required bool + type ResponseEntry struct + Content map[string]MediaType + Description string + type RouteInfo struct + Method string + OperationDescription string + OperationID string + Parameters []Parameter + Path string + RequestBody *RequestBody + ResponseSchema *Schema + Security []SecurityRequirement + TagDescription string + TagName string + type Schema struct + AdditionalProperties *Schema + Description string + Enum []any + Format string + Items *Schema + Properties map[string]Schema + Required []string + Type string + type SecurityRequirement map[string][]string + type SecurityScheme struct + BearerFormat string + Description string + In string + Name string + Scheme string + Type string + type Tag struct + Description string + Name string v2.0.0 Apr 9, 2026