Commit e1a7b4c
Fix: Allow consumers to specify how many circular references are allowed
As noted in oapi-codegen#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 oapi-codegen#936, oapi-codegen#957.1 parent bd9ff2a commit e1a7b4c
7 files changed
Lines changed: 524 additions & 1 deletion
File tree
- cmd/oapi-codegen
- internal/test/issues/issue-936
- pkg
- codegen
- util
| 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