Skip to content

Commit

Permalink
bug: set circular reference counter #199
Browse files Browse the repository at this point in the history
  • Loading branch information
srinandan committed May 9, 2023
1 parent 76900dc commit 4340f38
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/bundlegen/generateapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ func LoadDocumentFromFile(filePath string, validate bool, formatValidation bool)
var err error
var jsonContent []byte

// see ./test/circular-reference.json and https://github.com/apigee/apigeecli/issues/199
openapi3.CircularReferenceCounter = 10

doc, err = openapi3.NewLoader().LoadFromFile(filePath)
if err != nil {
clilog.Error.Println(err)
Expand Down

0 comments on commit 4340f38

Please sign in to comment.