Skip to content

go-openapi/analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

190e912 · Mar 28, 2025
Mar 28, 2025
Jul 22, 2022
Jan 9, 2024
Mar 11, 2025
Jun 20, 2019
Oct 25, 2021
Jul 29, 2018
Mar 28, 2025
Apr 17, 2016
Apr 17, 2016
Dec 5, 2023
Mar 11, 2025
Mar 11, 2025
Feb 21, 2021
Dec 5, 2023
Mar 11, 2025
Feb 21, 2021
Feb 21, 2021
Mar 11, 2025
Mar 11, 2025
Dec 21, 2023
Dec 21, 2023
Mar 4, 2024
Mar 14, 2025
Mar 14, 2025
Mar 11, 2025
Dec 5, 2023
Mar 11, 2025
Mar 4, 2024

Repository files navigation

OpenAPI analysis Build Status codecov

Slack Status license Go Reference Go Report Card

A foundational library to analyze an OAI specification document for easier reasoning about the content.

What's inside?

  • An analyzer providing methods to walk the functional content of a specification
  • A spec flattener producing a self-contained document bundle, while preserving $refs
  • A spec merger ("mixin") to merge several spec documents into a primary spec
  • A spec "fixer" ensuring that response descriptions are non empty

Documentation

FAQ

  • Does this library support OpenAPI 3?

No. This package currently only supports OpenAPI 2.0 (aka Swagger 2.0). There is no plan to make it evolve toward supporting OpenAPI 3.x. This discussion thread relates the full story.