Skip to content

Conversation

@ajstewart
Copy link
Contributor

This fixes the generation of the OpenAPI swagger docs in the following scenarios:

  • when paths have no possible validation errors.
  • when paths have no possible validation errors and a security scheme is used.

Fixes #44

Namely when paths have no validation errors so there are no components, or in the same situation when a security scheme is used that creates a components without the necessary schemas key
@ajstewart ajstewart changed the title fix: Fix OpenAPI Swagger docs in certain scenarios fix: OpenAPI Swagger docs generation in certain scenarios Aug 21, 2025
@ajstewart
Copy link
Contributor Author

@EdgyEdgemond this fixes it for me in the above scenarios, though wasn't sure if there could be some pitfalls here that I haven't thought of.

@EdgyEdgemond
Copy link
Contributor

Thanks for the PR, looks sound. Cant see any pitfalls. just scenarios I hadn't discovered or thought to test for :)

@ajstewart
Copy link
Contributor Author

Whoops I forgot to run the pre-commit, have added an ignore to that test

@EdgyEdgemond EdgyEdgemond merged commit 18a18cf into NRWLDev:main Aug 26, 2025
14 checks passed
@ajstewart ajstewart deleted the issue-44-fix-openapi-scenarios branch August 26, 2025 09:27
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.

Swagger openapi fails to load in certain conditions

2 participants