swaggo

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package swaggo turns a swaggo-generated Swagger (OpenAPI 2.0) document into an api2mcp Source. swaggo (github.com/swaggo/swag) is the most common way Go services document their handlers via // @Summary, // @Param annotations; it emits docs/swagger.json in OpenAPI 2.0. This source converts that to v3 and reuses the standard OpenAPI operation extraction, so an annotated Gin/Echo app gets full input schemas without an adapter.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromData

func FromData(data []byte) (*openapi.Source, error)

FromData parses a swaggo swagger.json (OpenAPI 2.0) from raw bytes.

func FromFile

func FromFile(path string) (*openapi.Source, error)

FromFile loads a swaggo-generated swagger.json (OpenAPI 2.0) and returns a Source backed by its v3 conversion.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL