express-openapi
express-openapi copied to clipboard
Fix issue #78: Separate OpenAPI specs for multiple middleware instances
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