Skip to content

Fix: Allow consumers to specify how many circular references are allowed#1204

Merged
jamietanna merged 1 commit intomasterfrom
defect/circular
Aug 23, 2023
Merged

Fix: Allow consumers to specify how many circular references are allowed#1204
jamietanna merged 1 commit intomasterfrom
defect/circular

Conversation

@jamietanna
Copy link
Copy Markdown
Member

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.

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.
@jamietanna jamietanna merged commit e1a7b4c into master Aug 23, 2023
@jamietanna jamietanna deleted the defect/circular branch August 23, 2023 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issue with specs with circular references

1 participant