Skip to content

Commit

Permalink
Bump github.com/getkin/kin-openapi from 0.124.0 to 0.126.0 in the all…
Browse files Browse the repository at this point in the history
… group (#346)

Bumps the all group with 1 update:
[github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi).

Updates `github.com/getkin/kin-openapi` from 0.124.0 to 0.126.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/getkin/kin-openapi/releases">github.com/getkin/kin-openapi's
releases</a>.</em></p>
<blockquote>
<h2>v0.126.0</h2>
<h2>What's Changed</h2>
<ul>
<li>openapi3: document v0.124.0 breaking API changes by <a
href="https://github.com/percivalalb"><code>@​percivalalb</code></a> in
<a
href="https://redirect.github.com/getkin/kin-openapi/pull/964">getkin/kin-openapi#964</a></li>
<li>openapi3: introduce <code>ReferencesComponentInRootDocument(doc *T,
ref componentRef) (string, bool)</code> by <a
href="https://github.com/percivalalb"><code>@​percivalalb</code></a> in
<a
href="https://redirect.github.com/getkin/kin-openapi/pull/945">getkin/kin-openapi#945</a></li>
<li>Update Go module dependencies by <a
href="https://github.com/percivalalb"><code>@​percivalalb</code></a> in
<a
href="https://redirect.github.com/getkin/kin-openapi/pull/965">getkin/kin-openapi#965</a></li>
<li>Move paragraph back to its correct section by <a
href="https://github.com/percivalalb"><code>@​percivalalb</code></a> in
<a
href="https://redirect.github.com/getkin/kin-openapi/pull/967">getkin/kin-openapi#967</a></li>
<li>Replace interface{} with any by <a
href="https://github.com/percivalalb"><code>@​percivalalb</code></a> in
<a
href="https://redirect.github.com/getkin/kin-openapi/pull/966">getkin/kin-openapi#966</a></li>
<li>openapi3: allow Extensions next to $ref in SchemaRef by <a
href="https://github.com/paulmach"><code>@​paulmach</code></a> in <a
href="https://redirect.github.com/getkin/kin-openapi/pull/901">getkin/kin-openapi#901</a></li>
<li>openapi3: implement circular reference backtracking by <a
href="https://github.com/AnatolyRugalev"><code>@​AnatolyRugalev</code></a>
in <a
href="https://redirect.github.com/getkin/kin-openapi/pull/970">getkin/kin-openapi#970</a></li>
<li>openapi3: improve ipv6 validation by <a
href="https://github.com/AnatolyRugalev"><code>@​AnatolyRugalev</code></a>
in <a
href="https://redirect.github.com/getkin/kin-openapi/pull/971">getkin/kin-openapi#971</a></li>
<li>openapi3: resolve recursive file references by <a
href="https://github.com/AnatolyRugalev"><code>@​AnatolyRugalev</code></a>
in <a
href="https://redirect.github.com/getkin/kin-openapi/pull/974">getkin/kin-openapi#974</a></li>
<li>openapi3: improve internalization ref naming to avoid collisions by
<a href="https://github.com/percivalalb"><code>@​percivalalb</code></a>
in <a
href="https://redirect.github.com/getkin/kin-openapi/pull/955">getkin/kin-openapi#955</a></li>
<li>openapi3: add a test for additionalProperties: false validation by
<a
href="https://github.com/AnatolyRugalev"><code>@​AnatolyRugalev</code></a>
in <a
href="https://redirect.github.com/getkin/kin-openapi/pull/975">getkin/kin-openapi#975</a></li>
<li>openapi3: add support for number and integer format validators by <a
href="https://github.com/AnatolyRugalev"><code>@​AnatolyRugalev</code></a>
in <a
href="https://redirect.github.com/getkin/kin-openapi/pull/976">getkin/kin-openapi#976</a></li>
<li>openapi3: allow YAML-marshaling invalid specs by <a
href="https://github.com/fenollp"><code>@​fenollp</code></a> in <a
href="https://redirect.github.com/getkin/kin-openapi/pull/977">getkin/kin-openapi#977</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/paulmach"><code>@​paulmach</code></a>
made their first contribution in <a
href="https://redirect.github.com/getkin/kin-openapi/pull/901">getkin/kin-openapi#901</a></li>
<li><a
href="https://github.com/AnatolyRugalev"><code>@​AnatolyRugalev</code></a>
made their first contribution in <a
href="https://redirect.github.com/getkin/kin-openapi/pull/970">getkin/kin-openapi#970</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/getkin/kin-openapi/compare/v0.125.0...v0.126.0">https://github.com/getkin/kin-openapi/compare/v0.125.0...v0.126.0</a></p>
<h2>v0.125.0</h2>
<h2>What's Changed</h2>
<ul>
<li>Revert &quot;openapi3gen: add CreateComponentSchemas option to
export object schemas to components&quot; and add with the correct
contributors by <a
href="https://github.com/EnriqueL8"><code>@​EnriqueL8</code></a> in <a
href="https://redirect.github.com/getkin/kin-openapi/pull/937">getkin/kin-openapi#937</a></li>
<li>openapi3: keep oneOf context in markSchemaErrorKey (<a
href="https://redirect.github.com/getkin/kin-openapi/issues/940">#940</a>)
by <a
href="https://github.com/jordan-wu-97"><code>@​jordan-wu-97</code></a>
in <a
href="https://redirect.github.com/getkin/kin-openapi/pull/941">getkin/kin-openapi#941</a></li>
<li>docs: add github.com/a-h/rest to projects list by <a
href="https://github.com/a-h"><code>@​a-h</code></a> in <a
href="https://redirect.github.com/getkin/kin-openapi/pull/942">getkin/kin-openapi#942</a></li>
<li>openapi4filter: improve CSV resp decoder performance by <a
href="https://github.com/mpoqq"><code>@​mpoqq</code></a> in <a
href="https://redirect.github.com/getkin/kin-openapi/pull/948">getkin/kin-openapi#948</a></li>
<li>openapi3filter: ensure key matches param name before decoding in
<code>(*urlValuesDecoder) DecodeObject(..)</code> by <a
href="https://github.com/MateusFrFreitas"><code>@​MateusFrFreitas</code></a>
in <a
href="https://redirect.github.com/getkin/kin-openapi/pull/947">getkin/kin-openapi#947</a></li>
<li>openapi3: ensure YAML marshalling matches JSON's by <a
href="https://github.com/damien-talos"><code>@​damien-talos</code></a>
in <a
href="https://redirect.github.com/getkin/kin-openapi/pull/943">getkin/kin-openapi#943</a></li>
<li>openapi{2,3}: surface both json/yaml unmarshal errors by <a
href="https://github.com/timothympace"><code>@​timothympace</code></a>
in <a
href="https://redirect.github.com/getkin/kin-openapi/pull/950">getkin/kin-openapi#950</a></li>
<li>openapi3(tests): use testify's <code>YAMLEq</code> function by <a
href="https://github.com/percivalalb"><code>@​percivalalb</code></a> in
<a
href="https://redirect.github.com/getkin/kin-openapi/pull/954">getkin/kin-openapi#954</a></li>
<li>openapi3filter: add context to Validator Middleware's ErrFunc and
LogFunc functions by <a
href="https://github.com/crissi98"><code>@​crissi98</code></a> in <a
href="https://redirect.github.com/getkin/kin-openapi/pull/953">getkin/kin-openapi#953</a></li>
<li>openapi3: move ref codegen to Go by <a
href="https://github.com/percivalalb"><code>@​percivalalb</code></a> in
<a
href="https://redirect.github.com/getkin/kin-openapi/pull/956">getkin/kin-openapi#956</a></li>
<li>changelog: note API breakage from <a
href="https://redirect.github.com/getkin/kin-openapi/issues/953">#953</a>
by <a href="https://github.com/fenollp"><code>@​fenollp</code></a> in <a
href="https://redirect.github.com/getkin/kin-openapi/pull/957">getkin/kin-openapi#957</a></li>
<li>openapi3: internalize refs for path parameters by <a
href="https://github.com/selaux"><code>@​selaux</code></a> in <a
href="https://redirect.github.com/getkin/kin-openapi/pull/960">getkin/kin-openapi#960</a></li>
<li>ci: drop CodeQL by <a
href="https://github.com/fenollp"><code>@​fenollp</code></a> in <a
href="https://redirect.github.com/getkin/kin-openapi/pull/962">getkin/kin-openapi#962</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/EnriqueL8"><code>@​EnriqueL8</code></a>
made their first contribution in <a
href="https://redirect.github.com/getkin/kin-openapi/pull/937">getkin/kin-openapi#937</a></li>
<li><a
href="https://github.com/jordan-wu-97"><code>@​jordan-wu-97</code></a>
made their first contribution in <a
href="https://redirect.github.com/getkin/kin-openapi/pull/941">getkin/kin-openapi#941</a></li>
<li><a href="https://github.com/a-h"><code>@​a-h</code></a> made their
first contribution in <a
href="https://redirect.github.com/getkin/kin-openapi/pull/942">getkin/kin-openapi#942</a></li>
<li><a href="https://github.com/mpoqq"><code>@​mpoqq</code></a> made
their first contribution in <a
href="https://redirect.github.com/getkin/kin-openapi/pull/948">getkin/kin-openapi#948</a></li>
<li><a
href="https://github.com/MateusFrFreitas"><code>@​MateusFrFreitas</code></a>
made their first contribution in <a
href="https://redirect.github.com/getkin/kin-openapi/pull/947">getkin/kin-openapi#947</a></li>
<li><a
href="https://github.com/damien-talos"><code>@​damien-talos</code></a>
made their first contribution in <a
href="https://redirect.github.com/getkin/kin-openapi/pull/943">getkin/kin-openapi#943</a></li>
<li><a
href="https://github.com/timothympace"><code>@​timothympace</code></a>
made their first contribution in <a
href="https://redirect.github.com/getkin/kin-openapi/pull/950">getkin/kin-openapi#950</a></li>
<li><a
href="https://github.com/percivalalb"><code>@​percivalalb</code></a>
made their first contribution in <a
href="https://redirect.github.com/getkin/kin-openapi/pull/954">getkin/kin-openapi#954</a></li>
<li><a href="https://github.com/crissi98"><code>@​crissi98</code></a>
made their first contribution in <a
href="https://redirect.github.com/getkin/kin-openapi/pull/953">getkin/kin-openapi#953</a></li>
<li><a href="https://github.com/selaux"><code>@​selaux</code></a> made
their first contribution in <a
href="https://redirect.github.com/getkin/kin-openapi/pull/960">getkin/kin-openapi#960</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/getkin/kin-openapi/commit/2692f43ba21c89366b2a221a86be520b87539352"><code>2692f43</code></a>
openapi3: allow YAML-marshaling invalid specs (<a
href="https://redirect.github.com/getkin/kin-openapi/issues/977">#977</a>)</li>
<li><a
href="https://github.com/getkin/kin-openapi/commit/4144c56505ce18a834a42de224bf9527a5b883fe"><code>4144c56</code></a>
openapi3: add support for number and integer format validators (<a
href="https://redirect.github.com/getkin/kin-openapi/issues/976">#976</a>)</li>
<li><a
href="https://github.com/getkin/kin-openapi/commit/4b53bf6e0fe58d9b426fa72fe61a8f3c027e2462"><code>4b53bf6</code></a>
openapi3: add a test for additionalProperties: false validation (<a
href="https://redirect.github.com/getkin/kin-openapi/issues/975">#975</a>)</li>
<li><a
href="https://github.com/getkin/kin-openapi/commit/0ed9f5d122299b343138b169ee343d81b09b5a9a"><code>0ed9f5d</code></a>
openapi3: improve internalization ref naming to avoid collisions (<a
href="https://redirect.github.com/getkin/kin-openapi/issues/955">#955</a>)</li>
<li><a
href="https://github.com/getkin/kin-openapi/commit/a27c9e791d943bf6c94bb3f750c250aa5cfc133b"><code>a27c9e7</code></a>
openapi3: resolve recursive file references (<a
href="https://redirect.github.com/getkin/kin-openapi/issues/974">#974</a>)</li>
<li><a
href="https://github.com/getkin/kin-openapi/commit/42a2d80973ff0d2b1254f327e1ddac9d6cff623c"><code>42a2d80</code></a>
openapi3: improve ipv6 validation (<a
href="https://redirect.github.com/getkin/kin-openapi/issues/971">#971</a>)</li>
<li><a
href="https://github.com/getkin/kin-openapi/commit/fe47dca093cf6e92f3dc43f8a500f67427c7bf4a"><code>fe47dca</code></a>
openapi3: implement circular reference backtracking (<a
href="https://redirect.github.com/getkin/kin-openapi/issues/970">#970</a>)</li>
<li><a
href="https://github.com/getkin/kin-openapi/commit/57624b323cc511f2c41b6f2721a9df0c6be78501"><code>57624b3</code></a>
openapi3: allow Extensions next to $ref in SchemaRef (<a
href="https://redirect.github.com/getkin/kin-openapi/issues/901">#901</a>)</li>
<li><a
href="https://github.com/getkin/kin-openapi/commit/7ec31299a5eef6d8d5b7e7bfcb591c1e053057ea"><code>7ec3129</code></a>
Replace interface{} with any (<a
href="https://redirect.github.com/getkin/kin-openapi/issues/966">#966</a>)</li>
<li><a
href="https://github.com/getkin/kin-openapi/commit/3aa9b4e83f2e210777c69cfd6e2f71bb18484dae"><code>3aa9b4e</code></a>
Move paragraph back to its correct section (<a
href="https://redirect.github.com/getkin/kin-openapi/issues/967">#967</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/getkin/kin-openapi/compare/v0.124.0...v0.126.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/getkin/kin-openapi&package-manager=go_modules&previous-version=0.124.0&new-version=0.126.0)](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 merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Igor Suleymanov <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Igor Suleymanov <[email protected]>
  • Loading branch information
dependabot[bot] and radiohead authored Jul 29, 2024
1 parent 5e84d1d commit a654de8
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 21 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.22.4
require (
cuelang.org/go v0.5.0
github.com/dave/dst v0.27.3
github.com/getkin/kin-openapi v0.124.0
github.com/getkin/kin-openapi v0.126.0
github.com/grafana/codejen v0.0.3
github.com/grafana/cuetsy v0.1.10
github.com/grafana/thema v0.0.0-20230511182720-3146087fcc26
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ github.com/fasthttp-contrib/websocket v0.0.0-20160511215533-1f3b11f56072/go.mod
github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M=
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
github.com/gavv/httpexpect v2.0.0+incompatible/go.mod h1:x+9tiU1YnrOvnB725RkpoLv1M62hOWzwo5OXotisrKc=
github.com/getkin/kin-openapi v0.124.0 h1:VSFNMB9C9rTKBnQ/fpyDU8ytMTr4dWI9QovSKj9kz/M=
github.com/getkin/kin-openapi v0.124.0/go.mod h1:wb1aSZA/iWmorQP9KTAS/phLj/t17B5jT7+fS8ed9NM=
github.com/getkin/kin-openapi v0.126.0 h1:c2cSgLnAsS0xYfKsgt5oBV6MYRM/giU8/RtwUY4wyfY=
github.com/getkin/kin-openapi v0.126.0/go.mod h1:7mONz8IwmSRg6RttPu6v8U/OJ+gr+J99qSFNjPGSQqw=
github.com/getsentry/sentry-go v0.12.0 h1:era7g0re5iY13bHSdN/xMkyV+5zZppjRVQhZrXCaEIk=
github.com/getsentry/sentry-go v0.12.0/go.mod h1:NSap0JBYWzHND8oMbyi0+XZhUalc1TBdRL1M71JZW2c=
github.com/gin-contrib/sse v0.0.0-20190301062529-5545eab6dad3/go.mod h1:VJ0WA2NBN22VlZ2dKZQPAPnyWw5XTlK1KymzLKsr59s=
Expand Down
20 changes: 5 additions & 15 deletions internal/deepmap/oapi-codegen/pkg/util/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,9 @@ func LoadSwagger(filePath string) (swagger *openapi3.T, err error) {
}
}

func LoadSwaggerWithCircularReferenceCount(filePath string, circularReferenceCount int) (swagger *openapi3.T, err error) {
// get a copy of the existing count
existingCircularReferenceCount := openapi3.CircularReferenceCounter
if circularReferenceCount > 0 {
openapi3.CircularReferenceCounter = circularReferenceCount
}

swagger, err = LoadSwagger(filePath)

if circularReferenceCount > 0 {
// and make sure to reset it
openapi3.CircularReferenceCounter = existingCircularReferenceCount
}

return swagger, err
func LoadSwaggerWithCircularReferenceCount(filePath string, _ int) (*openapi3.T, error) {
// FYI(@radiohead):
// github.com/getkin/kin-openapi/openapi3 has implemented reference backtracking in v0.126.0,
// so there is no longer a need for special handling of circular references.
return LoadSwagger(filePath)
}
2 changes: 1 addition & 1 deletion plugin/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/elazarl/goproxy v0.0.0-20230731152917-f99041a5c027 // indirect
github.com/fatih/color v1.15.0 // indirect
github.com/getkin/kin-openapi v0.124.0 // indirect
github.com/getkin/kin-openapi v0.126.0 // indirect
github.com/go-logr/logr v1.4.2 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-openapi/jsonpointer v0.21.0 // indirect
Expand Down
3 changes: 1 addition & 2 deletions plugin/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSw
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA=
github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM=
github.com/getkin/kin-openapi v0.124.0 h1:VSFNMB9C9rTKBnQ/fpyDU8ytMTr4dWI9QovSKj9kz/M=
github.com/getkin/kin-openapi v0.124.0/go.mod h1:wb1aSZA/iWmorQP9KTAS/phLj/t17B5jT7+fS8ed9NM=
github.com/getkin/kin-openapi v0.126.0 h1:c2cSgLnAsS0xYfKsgt5oBV6MYRM/giU8/RtwUY4wyfY=
github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
github.com/go-logr/logr v1.3.0/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY=
Expand Down

0 comments on commit a654de8

Please sign in to comment.