Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Infinite Circular Reference Detected #132

Closed
fullstackmaverick opened this issue Aug 6, 2024 · 4 comments
Closed

Infinite Circular Reference Detected #132

fullstackmaverick opened this issue Aug 6, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@fullstackmaverick
Copy link

Hi team,

I came across the issue and I couldn't find how could we disable that on Wiretap level.

wiretap version: 0.1.19 | compiled: Tue, 23 Jul 2024 17:45:30 UTC
Designed and built by Princess Beef Heavy Industries: https://pb33f.io/wiretap

 INFO  No wiretap configuration located. Using defaults
Error: infinite circular reference detected: Site: User -> SiteManager -> Site -> Organisation -> Site [255:15]

These are model based dependencies e.g. using relationships.

Any thoughts to resolve this would be great!

@daveshanley
Copy link
Member

For your context:

https://pb33f.io/libopenapi/circular-references/

@daveshanley
Copy link
Member

However, I just realized there is no way to disable it in wiretap.

daveshanley added a commit that referenced this issue Aug 8, 2024
Circular references are no reason to fail running wiretap. Warnings are printed if there are errors, but the model is loaded.
@daveshanley daveshanley added the bug Something isn't working label Aug 8, 2024
daveshanley added a commit that referenced this issue Aug 8, 2024
Circular references are no reason to fail running wiretap. Warnings are printed if there are errors, but the model is loaded.
@daveshanley
Copy link
Member

Fixed in v0.1.20

If the model builds, but non-breaking issues like circular references are returned, then wiretap will spit out warnings, but continue on as normal.

Screenshot 2024-08-08 at 9 25 38 AM

@fullstackmaverick
Copy link
Author

Thanks for the fix! Amazing support.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants