Skip to content

Fix issue #78: Separate OpenAPI specs for multiple middleware instances#79

Open
henry232323 wants to merge 1 commit intowesleytodd:mainfrom
henry232323:fix-issue-78
Open

Fix issue #78: Separate OpenAPI specs for multiple middleware instances#79
henry232323 wants to merge 1 commit intowesleytodd:mainfrom
henry232323:fix-issue-78

Conversation

@henry232323
Copy link

If this is by design, feel free to close this PR. This PR fixes #78 and separates out the OpenAPI specs if they are registered to different middleware.

  • Store owned routes directly on middleware instance using Set
  • Filter routes based on ownership when generating specs
  • Ensures each middleware only includes its own routes

…re instances

- Store owned routes directly on middleware instance using Set
- Filter routes to exclude those owned by other OpenAPI middlewares
- Ensures each middleware only includes its own routes while preserving sub-router compatibility
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.

Cannot Use Multiple OpenAPI Middlewares

1 participant