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

App without any routes generates no openapi.json despite having schemas #79

Closed
provokateurin opened this issue Jan 17, 2024 · 3 comments · Fixed by #81
Closed

App without any routes generates no openapi.json despite having schemas #79

provokateurin opened this issue Jan 17, 2024 · 3 comments · Fixed by #81
Assignees
Labels
bug Something isn't working

Comments

@provokateurin
Copy link
Member

This broke with #24.
The comments app in server is affected, because it has no routes and only it's capabilities are present (deleted the openapi.json file, it will not be regenerated).

@provokateurin provokateurin added the bug Something isn't working label Jan 17, 2024
@nickvergessen
Copy link
Member

Well why should it generate schemas that are not used anywhere? But yeah I also noticed it and wondered why it gets a file at all. Should be only for the capabilities. But the schemas must be removed as they are not used

@nickvergessen
Copy link
Member

But yeah, fix will come that we generate default when capabilities are there even without any route

@provokateurin
Copy link
Member Author

Capabilities is the only reason why we need this, any other case indicates a problem with the app.

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

Successfully merging a pull request may close this issue.

2 participants