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

Recursive definition fails validation #1039

Open
eltiare opened this issue Dec 10, 2024 · 0 comments
Open

Recursive definition fails validation #1039

eltiare opened this issue Dec 10, 2024 · 0 comments

Comments

@eltiare
Copy link

eltiare commented Dec 10, 2024

Here is the result of using this library to generate a spec: https://gist.github.com/eltiare/01fa16eaac084e09f22b70afe1abdbb8

The ValidationErrors component references itself in a object form. When I paste the YAML spec into the Swagger validator it passes and the inspector correctly shows a nested reference. When I run Validate on the document I get this error:

invalid components: schema "ValidationErrors": found unresolved ref: "#/components/schemas/ValidationErrors"

I am setting the references manually in my own document generator.

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