Versions in this module Expand all Collapse all v1 v1.17.0 Jul 10, 2026 v1.16.0 Jul 10, 2026 Changes in this version + func NewOpenAPISpecHandler(svc OpenAPIService) http.HandlerFunc + func NewOpenAPISpecYAMLHandler(svc OpenAPIService) http.HandlerFunc + func WithJSONContentType() swaggestopenapi.ContentOption + type OpenAPIService interface + AddOperation func(method, pathPattern string, opts ...OperationOption) error + RegisterSchema func(name string, typ any) error + SpecJSON func() ([]byte, error) + SpecYAML func() ([]byte, error) + func NewOpenAPIService(title, apiVersion, description string, opts ...ServiceOption) (OpenAPIService, error) + type OperationOption func(swaggestopenapi.OperationContext) + func WithDeprecated(deprecated bool) OperationOption + func WithDescription(description string) OperationOption + func WithOperationID(id string) OperationOption + func WithRequest(req any, opts ...swaggestopenapi.ContentOption) OperationOption + func WithResponse(resp any, opts ...swaggestopenapi.ContentOption) OperationOption + func WithResponseStatus(status int, resp any) OperationOption + func WithSummary(summary string) OperationOption + func WithTags(tags ...string) OperationOption + type ServiceOption func(*openapiService) + func WithOpenAPIVersion(v string) ServiceOption + func WithShortSchemaNames() ServiceOption