# go-swagger/go-swagger

Swagger 2.0 implementation for go

Repository: https://github.com/go-swagger/go-swagger
Canonical: https://ross.abutalabs.com/products/go-swagger
Homepage: https://goswagger.io
Language: Go
License: Apache-2.0
License Family: permissive
Topics: go, swagger-codegen, api, code-generator, golang, swagger-specification, swagger-spec
Last push: 2026-08-26T14:24:24+00:00

## Health v2 (maintenance only)
Score: 99/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 99, longevity 100
- inputs: {"age_days": 4308, "days_push": 7, "days_rel": 9, "gap_med": 8.0, "n_releases_24m": 15}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 10006, forks 1312 (observed 2026-08-28T04:10:39.234013+00:00)

## What it is
A Go implementation of the Swagger 2.0 (OpenAPI 2.0) specification with a CLI tool for working with swagger specs. It generates servers, clients, and models from specifications, and can generate specs from annotated Go code.

## Use cases
- generate a go server from a swagger spec
- generate a go api client from openapi 2.0
- generate swagger spec from annotated go code
- validate and work with swagger 2.0 documents
- scaffold rest api server and models from openapi

## When to choose
- you use OpenAPI/Swagger 2.0 and want idiomatic Go server or client code
- you want to generate a spec from Go source annotations
- you need a mature, actively maintained swagger toolchain for Go

## When to avoid
- you need OpenAPI 3.x support
- you prefer writing handlers by hand without code generation
- you use a different language ecosystem

## Facets
- artifact type: cli-tool
- maturity: active
- function: api-framework, serialization, http-server, http-client
- domain: apis, developer-tools, web-development, backend
- platform: go, cli, cross-platform
- tags: swagger, openapi-2-0, codegen, rest-api, specification, server-generation, client-generation, code-generation, docker

## Member repositories
- go-swagger/go-swagger (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:39.234013+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:20:00.582868+00:00, confidence not recorded.
  - readme: https://github.com/go-swagger/go-swagger (fetched 2026-08-28T04:10:39.234013+00:00, sha b3b1967d36a7)
  - homepage: https://goswagger.io (fetched 2026-08-29T08:19:44.852546+00:00, sha 7a61f8b32ba5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
