Skip to main content

Go-Swagger-Generator v2

Go-Swagger-Generator v2 is a library that allows you to generate OpenAPI 3.0 documentation for APIs created with Go and the Gin framework, using a declarative approach in the code.

Key Features

  • Declarative API - Define your documentation with a fluid syntax for OpenAPI 3.0.
  • Gin Compatible - Perfect integration with the Gin framework.
  • No annotations - No special comments required in the code.
  • Complete OpenAPI 3.0 support - Define components (schemas, security schemes), paths, parameters, request bodies, and responses.
  1. Quick Start
  2. Defining Models (Schemas)
  3. Security Schemes
  4. Production Configuration