« Back to Search  |  Reader Mode  |  Switch to Full Retro Site View Links: Stay in Reader  |  Retro Mode: ON  |  Original »
GitHub · Extracted in 798 ms

GitHub - go-openapi/analysis: openapi specification object model analyzer

Source: https://github.com/go-openapi/analysis

Repository navigation

analysis
Public

About

openapi specification object model analyzer

Topics

openapi swagger2

Resources

Readme Apache-2.0 license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy Activity Custom properties

Stars

35 stars

Watchers

4 watching

Forks

47 forks Report repository
Branches

Tags
Go to Branches page Go to Tags page

Latest commit

 

History


417 Commits
View commit history for this file.

Folders and files

Name Name Last commit message Last commit date
.claude .claude    
.github .github    
diff diff    
docs docs    
internal internal    
testdata testdata    
.codecov.yml .codecov.yml    
.editorconfig .editorconfig    
.gitattributes .gitattributes    
.gitignore .gitignore    
.golangci.yml .golangci.yml    
AGENTS.md AGENTS.md    
CODE_OF_CONDUCT.md CODE_OF_CONDUCT.md    
CONTRIBUTORS.md CONTRIBUTORS.md    
LICENSE LICENSE    
README.md README.md    
SECURITY.md SECURITY.md    
analyzer.go analyzer.go    
analyzer_test.go analyzer_test.go    
debug.go debug.go    
doc.go doc.go    
errors.go errors.go    
fixer.go fixer.go    
fixer_test.go fixer_test.go    
flatten.go flatten.go    
flatten_name.go flatten_name.go    
flatten_name_test.go flatten_name_test.go    
flatten_options.go flatten_options.go    
flatten_test.go flatten_test.go    
go.mod go.mod    
go.sum go.sum    
mixin.go mixin.go    
mixin_test.go mixin_test.go    
options.go options.go    
recommended.go.work.txt recommended.go.work.txt    
revive.toml revive.toml    
schema.go schema.go    
schema_test.go schema_test.go    

Repository files navigation

analysis


A foundational library to analyze, diff, flatten, merge, and fix OAI specification documents for easier reasoning about the content.

Announcements

  • 2025-12-19 : new community chat on discord
    • a new discord community channel is available to be notified of changes and support users

You may join the discord community by clicking the invite link on the discord badge (also above).

Status

API is stable.

Import this library in your project

go get github.com/go-openapi/analysis

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 differ ("diff") to compare two specs and report structural and compatibility changes
  • A spec merger ("mixin") to merge several spec documents into a primary spec
  • A spec "fixer" ensuring that response descriptions are non empty

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.

Change log

See https://github.com/go-openapi/analysis/releases

Licensing

This library ships under the SPDX-License-Identifier: Apache-2.0 .

Other documentation

Cutting a new release

Maintainers can cut a new release by either:

  • running this workflow
  • or pushing a semver tag
    • signed tags are preferred
    • The tag message is prepended to release notes

About

openapi specification object model analyzer

Topics

openapi swagger2

Resources

Readme Apache-2.0 license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy Activity Custom properties

Stars

35 stars

Watchers

4 watching

Forks

47 forks Report repository

Releases

Packages

Used by

Contributors

Languages