Versions in this module Expand all Collapse all v0 v0.1.0 Jan 17, 2026 Changes in this version + var ErrUnsupportedMethod = errors.New("unsupported method") + func Handler(doc *Document) http.Handler + type Builder struct + func New(info Info) *Builder + func (b *Builder) AddRoute(method, path string, op Operation) error + func (b *Builder) AddSchema(name string, schema Schema) + func (b *Builder) AddSecurityScheme(name string, scheme SecurityScheme) + func (b *Builder) AddServer(server Server) + func (b *Builder) AddTag(tag Tag) + func (b *Builder) Document() *Document + func (b *Builder) Handler() http.Handler + type Components struct + Schemas map[string]Schema + SecuritySchemes map[string]SecurityScheme + type Document struct + Components *Components + Info Info + OpenAPI string + Paths map[string]*PathItem + Servers []Server + Tags []Tag + type Header struct + Description string + Schema *Schema + type Info struct + Description string + Title string + Version string + type MediaType struct + Example any + Schema *Schema + type Operation struct + Description string + OperationID string + Parameters []Parameter + RequestBody *RequestBody + Responses map[string]Response + Security []map[string][]string + Summary string + Tags []string + type Parameter struct + Description string + In string + Name string + Required bool + Schema *Schema + type PathItem struct + Delete *Operation + Get *Operation + Head *Operation + Options *Operation + Patch *Operation + Post *Operation + Put *Operation + Trace *Operation + type RequestBody struct + Content map[string]MediaType + Description string + Required bool + type Response struct + Content map[string]MediaType + Description string + Headers map[string]Header + type Schema struct + Description string + Enum []string + Format string + Items *Schema + Properties map[string]Schema + Ref string + Required []string + Type string + type SecurityScheme struct + BearerFormat string + Description string + In string + Name string + Scheme string + Type string + type Server struct + Description string + URL string + type Tag struct + Description string + Name string