Skip to content

bug: multiple specs are not working #538

@dnalborczyk

Description

@dnalborczyk

Describe the bug

applying multiple specs to middleware does not seem to be supported. only the very first applied spec is working.

I found this issue, but it applied to a previous version of this project, and indicated it should have been fixed:
#281

To Reproduce

[spec1, spec2].forEach((spec) =>
  app.use(
    middleware({
      spec,
      operationHandlers: {
		...
	  },
    }),
  )
)

Actual behavior
only first (spec1) spec is known and maps operation handlers.

Expected behavior
both specs should map operation handlers.

Examples and context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions