# getkin/kin-openapi

OpenAPI 3.0 and 3.1 and 3.2 (and Swagger v2) implementation for Go (parsing, converting, validation, and more)

Repository: https://github.com/getkin/kin-openapi
Canonical: https://ross.abutalabs.com/products/kin-openapi
Language: Go
License: MIT
License Family: permissive
Topics: openapi, openapi3, swagger, api, documentation, golang, hacktoberfest, openapi2
Last push: 2026-08-26T00:10:19+00:00

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

## Adoption (not part of the score)
Stars 3284, forks 507 (observed 2026-08-28T04:07:53.719861+00:00)

## What it is
A Go library implementing the OpenAPI 2.0, 3.0, 3.1, and (partially) 3.2 specifications. It provides parsing, conversion, and validation of OpenAPI documents and is widely used by Go API tooling.

## Use cases
- parse openapi 3 spec files in go
- validate requests against an openapi schema
- convert swagger 2.0 to openapi 3
- load and validate openapi yaml or  documents
- build go tools that read openapi specs
- validate openapi documents for correctness

## When to choose
- you need a mature, widely-adopted OpenAPI implementation in Go
- you must support multiple OpenAPI versions including 3.1 and 3.2
- you are building code generators, mock servers, or validators on top of OpenAPI

## When to avoid
- you need full OpenAPI 3.2 support, which is only partial
- you work outside the Go ecosystem
- you only need simple JSON Schema validation without OpenAPI semantics

## Facets
- artifact type: library
- maturity: active
- function: parser, serialization, form-handling, api-framework, developer-tools
- domain: apis, developer-tools, documentation, web-development
- platform: go, cross-platform
- tags: openapi, openapi3, swagger, spec-validation, api-documentation

## Member repositories
- getkin/kin-openapi (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:53.719861+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-29T18:43:13.612247+00:00, confidence not recorded.
  - readme: https://github.com/getkin/kin-openapi (fetched 2026-08-28T04:07:53.719861+00:00, sha 59d3b35c4370)
- Data as of 2026-08-30T08:39:29.467469+00:00.
