Commit fe07af0
Jamie Tanna
Fix: Allow consumers to specify how many circular references are allowed
As noted in #936, we have an issue where a number of circular references
may be expected and allowed, so we should provide the ability to
configure this, allowing users to decide what makes sense for them.
This requires we add an additional method,
`LoadSwaggerWithCircularReferenceCount`, as the existing method is part
of our public API and we cannot modify it without breaking consumers.
This is already available in the version of kin-openapi we're using,
we're just configuring it.
Closes #936, #957.1 parent bd9ff2a commit fe07af0
File tree
7 files changed
+524
-1
lines changed- cmd/oapi-codegen
- internal/test/issues/issue-936
- pkg
- codegen
- util
7 files changed
+524
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | | - | |
| 261 | + | |
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
| |||
0 commit comments