Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

generate-examples fails if spec has circular reference #1046

Open
mikeharder opened this issue Sep 26, 2024 · 0 comments
Open

generate-examples fails if spec has circular reference #1046

mikeharder opened this issue Sep 26, 2024 · 0 comments

Comments

@mikeharder
Copy link
Member

mikeharder commented Sep 26, 2024

If a spec has a circular reference, oav generate-examples will fail with a warning foo is null, it may be caused by circular reference. An example is this PR as of this commit:

https://github.com/Azure/azure-rest-api-specs-pr/pull/19372/commits/b064b54deeaef1a7647afa036e2a223e80f38b7a

It's common for OpenAPI 2.0 tools to fail on specs with circular references, so this might not be worth fixing, but we can still use this issue for tracking.

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

No branches or pull requests

1 participant