express-openapi icon indicating copy to clipboard operation
express-openapi copied to clipboard

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

Open henry232323 opened this issue 2 months ago • 0 comments

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

henry232323 avatar Oct 22 '25 17:10 henry232323