Skip to content

chore: bump version swaggest/openapi-go to v0.2.61#56

Merged
akfaiz merged 2 commits intomainfrom
bump/swaggest-openapi-go
Apr 14, 2026
Merged

chore: bump version swaggest/openapi-go to v0.2.61#56
akfaiz merged 2 commits intomainfrom
bump/swaggest-openapi-go

Conversation

@akfaiz
Copy link
Copy Markdown
Member

@akfaiz akfaiz commented Apr 14, 2026

Description

bump version swaggest/openapi-go to v0.2.61

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Refactor / code quality
  • Other (describe):

Checklist

  • make check passes locally (sync + tidy + lint + test)
  • Tests added or updated to cover the change
  • Golden files updated if spec output changed (make test-update)
  • Relevant documentation updated (README, adapter README, etc.)
  • Commit messages follow Conventional Commits

Notes for Reviewers

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link
Copy Markdown

@llamapreview llamapreview Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AI Code Review by LlamaPReview

🎯 TL;DR & Recommendation

Recommendation: Approve with suggestions.

This PR bumps dependency versions for OpenAPI libraries across all adapters, ensuring compatibility with updated golden files and improving maintainability through automated dependency management.

🌟 Strengths

  • Comprehensive test coverage with updated golden files verifying spec output changes.
  • Maintainability improvements through extended tidy automation and coordinated dependency updates.
Priority File Category Impact Summary (≤12 words) Anchors
P2 adapter/chiopenapi/go.mod Architecture Updates OpenAPI libs across adapters, may affect spec generation. path:go.mod
P2 Makefile Maintainability Extends tidy target to example dirs for consistency.
P2 adapter/echov5openapi/example/go.mod Maintainability Adds new indirect dependency golang.org/x/text via transitive change. path:adapter/echov5openapi/example/go.sum

🔍 Notable Themes

  • Coordinated dependency updates ensure consistency across all adapter modules and their examples.
  • Automated workspace management reduces drift risks between main and example codebases.

💡 Have feedback? We'd love to hear it in our GitHub Discussions.
✨ This review was generated by LlamaPReview Advanced, which is free for all open-source projects. Learn more.

Comment on lines 11 to 18
require (
github.com/oaswrap/spec-ui v0.2.0 // indirect
github.com/swaggest/jsonschema-go v0.3.78 // indirect
github.com/swaggest/openapi-go v0.2.60 // indirect
github.com/swaggest/jsonschema-go v0.3.79 // indirect
github.com/swaggest/openapi-go v0.2.61 // indirect
github.com/swaggest/refl v1.4.0 // indirect
golang.org/x/net v0.50.0 // indirect
golang.org/x/text v0.34.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 | Confidence: High

Speculative: The adapter/echov5openapi/example/go.mod changes include a swap of golang.org/x/net v0.50.0 for golang.org/x/text v0.34.0 in the indirect dependencies. This is likely an artifact of go mod tidy resolving a transitive dependency change in the updated swaggest/openapi-go library. While likely harmless, this introduces a new, unrelated dependency (golang.org/x/text) into the example module. The risk is low but introduces a potential future versioning conflict. Review the transitive dependency tree to ensure this is intentional and doesn't pull in unnecessary code.

Comment thread adapter/chiopenapi/go.mod
@@ -13,8 +13,8 @@ require (
github.com/davecgh/go-spew v1.1.1 // indirect
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Contextual Comment]
This comment refers to code near real line 12. Anchored to nearest_changed(13) line 13.


P2 | Confidence: High

Speculative: The PR updates the indirect dependency github.com/swaggest/openapi-go from v0.2.60 to v0.2.61 and github.com/swaggest/jsonschema-go from v0.3.78 to v0.3.79 across all 9 adapter modules and their 8 example modules. This is a coordinated dependency bump. The Makefile change ensures example directories are also tidied. Without access to the libraries' changelogs, the primary risk is subtle behavioral changes in OpenAPI spec generation or JSON schema validation that could affect downstream consumers of generated specs. Since the author reports golden files were updated (make test-update), this indicates the new versions produce different spec outputs. The change appears safe due to comprehensive test coverage, but the diff in golden files should be manually inspected for any breaking changes in API descriptions, validation rules, or security scheme definitions.

Comment thread Makefile
@@ -102,6 +102,10 @@ tidy: ## Tidy up Go modules for core and adapters
@for a in $(ADAPTERS); do \
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Contextual Comment]
This comment refers to code near real line 99. Anchored to nearest_changed(102) line 102.


P2 | Confidence: High

The Makefile change extends the tidy target to recursively run go mod tidy in adapter example/ subdirectories. This ensures transitive dependencies in example code are correctly synchronized after the version bump. This is a maintainability improvement that prevents drift between the adapter's main module and its examples. No functional impact, but promotes consistency across the workspace.

@akfaiz akfaiz merged commit 36540e2 into main Apr 14, 2026
6 checks passed
@akfaiz akfaiz deleted the bump/swaggest-openapi-go branch April 14, 2026 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant