Skip to content

Commit d8cb815

Browse files
build(deps): bump github.com/pb33f/libopenapi from 0.41.8 to 0.42.3 in /codegen (#148)
Bumps [github.com/pb33f/libopenapi](https://github.com/pb33f/libopenapi) from 0.41.8 to 0.42.3. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/pb33f/libopenapi/releases">github.com/pb33f/libopenapi's releases</a>.</em></p> <blockquote> <h2>v0.42.3</h2> <p>Fixes some things, performance boost on indexing too from <a href="https://github.com/Tjmstudios"><code>@​Tjmstudios</code></a></p> <h2>v0.42.0</h2> <p>This release improves reference resolution, bundling, and schema comparison across OpenAPI and Swagger documents. It fixes missing schema fields, incomplete bundles, incorrect circular-reference paths, and recursive comparisons that could panic or stall. It also fixes a shared-index race affecting Vacuum when multiple documents use the same cached filesystem.</p> <p>Compatibility has been verified against unmodified Vacuum and openapi-changes, including full test suites, targeted race checks, and CLI runs across six real-world specifications. Linux, Windows, and the full library race suite pass, with 100% project and patch coverage. Benchmarks show faster indexing and comparison overall, though gains vary by specification and operation.</p> <ul> <li>Reference handling: resolve external schemas and Swagger path items in their owning documents; preserve aliases, discriminator mappings, and encoded paths during bundling.</li> <li>More accurate comparisons: count allOf breaking changes once and include changes inside retargeted references. Reports and change totals can differ from earlier releases.</li> <li>Bounded alias expansion: excessive YAML alias expansion now returns an error. Set AllowExcessiveAliases for trusted documents that require it; cycle detection remains enabled.</li> <li>Clearer cycle failures: reference-only cycles now return build errors instead of incomplete models or hangs.</li> <li>Go compatibility note: empty schema-change maps may now be nil. Reading and iterating remain safe; initialize them before writing directly.</li> </ul> <p><a href="https://github.com/CaliLuke"><code>@​CaliLuke</code></a> <a href="https://github.com/josephaxisa"><code>@​josephaxisa</code></a> <a href="https://github.com/madesst"><code>@​madesst</code></a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/pb33f/libopenapi/commit/0a890943a91ab61343a9a09a743b5752aa978d8b"><code>0a89094</code></a> perf(index): stop tracking the files being indexed</li> <li><a href="https://github.com/pb33f/libopenapi/commit/285721f084fcfa787cdab1b9435690ab7087d8f7"><code>285721f</code></a> test: cover the root BaseURL path in datamodel/low</li> <li><a href="https://github.com/pb33f/libopenapi/commit/cd2e86477ad835ce1af1cbac2b7b87bc4531225d"><code>cd2e864</code></a> fix: resolve relative refs against a root BaseURL</li> <li><a href="https://github.com/pb33f/libopenapi/commit/ae1153a39f8cd826ac3c5aa50429d6d316e04c36"><code>ae1153a</code></a> fix(index): isolate cached files across document owners</li> <li><a href="https://github.com/pb33f/libopenapi/commit/60d419381481ae5e4bb9daf2f5ec13b98e54182c"><code>60d4193</code></a> perf(utils): validate JSONPath names with an ASCII lookup</li> <li><a href="https://github.com/pb33f/libopenapi/commit/6f332ee0b3097676f1b551bedde21113286813a0"><code>6f332ee</code></a> perf(index): combine node scans and keep traversal state on the stack</li> <li><a href="https://github.com/pb33f/libopenapi/commit/55fdbb21982a76a5fdbf4042f0ed6ec3c9708845"><code>55fdbb2</code></a> perf(index): keep transient resolver paths on the stack</li> <li><a href="https://github.com/pb33f/libopenapi/commit/9e86684abb7fddcb7e9657a3bda88a664fa6ecf6"><code>9e86684</code></a> fix(index): recognize named components before example keywords</li> <li><a href="https://github.com/pb33f/libopenapi/commit/c9bb52910375c02a952bd0442a3bbd9cbd8f9849"><code>c9bb529</code></a> test: cover alias policy and external example boundaries</li> <li><a href="https://github.com/pb33f/libopenapi/commit/6c047c5aab5f008ade73e1becbad88b5f78bd851"><code>6c047c5</code></a> perf(what-changed): bound parallel comparisons and avoid absent-field checks</li> <li>Additional commits viewable in <a href="https://github.com/pb33f/libopenapi/compare/v0.41.8...v0.42.3">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/pb33f/libopenapi&package-manager=go_modules&previous-version=0.41.8&new-version=0.42.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 74b2b71 commit d8cb815

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎codegen/go.mod‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require (
66
github.com/iancoleman/strcase v0.3.0
77
github.com/lmittmann/tint v1.2.1
88
github.com/pb33f/go-yaml v0.1.1
9-
github.com/pb33f/libopenapi v0.41.8
9+
github.com/pb33f/libopenapi v0.42.3
1010
github.com/urfave/cli/v2 v2.27.7
1111
)
1212

‎codegen/go.sum‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ github.com/pb33f/go-yaml v0.1.1 h1:yWGmhVdwzionRnSc/hEJwcfq6PaZL2QdYzyReXBbX7Q=
1414
github.com/pb33f/go-yaml v0.1.1/go.mod h1:QvWdkHP5VjFYAeHMQUkaPQqREaQnBNOXmWzAjNrnSdo=
1515
github.com/pb33f/jsonpath v0.8.4 h1:Yx7fxsKl8scgERL22WhKDs2c6gYNNUonPSWEG8Y194s=
1616
github.com/pb33f/jsonpath v0.8.4/go.mod h1:eO6mgdhw5RgzCxm/bXTi75VUs0/cCYJzdGjMCCUEI6M=
17-
github.com/pb33f/libopenapi v0.41.8 h1:SCqrRbHNodEJjyLRFhvUkLyjQ1H+1W0fxhR+oCslRis=
18-
github.com/pb33f/libopenapi v0.41.8/go.mod h1:IlfeXtmcY38KEnGJ4OMWFA8I62BCNamuQa8omLnk6R0=
17+
github.com/pb33f/libopenapi v0.42.3 h1:0VXnFgz04LtWjIsmCqGYA5E2Mx0DOZcOTjy5KHYw88k=
18+
github.com/pb33f/libopenapi v0.42.3/go.mod h1:IlfeXtmcY38KEnGJ4OMWFA8I62BCNamuQa8omLnk6R0=
1919
github.com/pb33f/ordered-map/v2 v2.3.2 h1:wDyaZ2Pv9QLh64X4utCeD5Zoi9nIv2aW3lwv172O5PQ=
2020
github.com/pb33f/ordered-map/v2 v2.3.2/go.mod h1:1OhFrXu3OYw3kM+FXF+Ug3ugmmZ9LE8z0JfQMLvtV0w=
2121
github.com/pb33f/testify v0.1.1 h1:mnHe7uxKt8dyNYEGUspow72VjD264DB5rOJq4bz5tJw=

0 commit comments

Comments
 (0)