Skip to content

multiple spec files and urls #125

Open
@minchevz

Description

Hi, im trying to use with multiple spec files and urls defined. but it runs only one of them if i define 2 spec.
is it possible to run like this as in swagger-ui package .

const ui = SwaggerUIBundle({
    urls: [
      { name: 'v1', url: 'https://petstore.swagger.io/v2/swagger.json'},
      { name: 'v2', url: 'https://petstore.swagger.io/v2/swagger.json'}
    ]
  })

using the middleware as its , it runs only on of them currently if i dont miss anything.

 oas({
    spec,
    endpoint: '/v2',
    uiEndpoint: '/'
  });

would be good if its possible to run with multiple endpoints as array and can version apis on UI as :
image

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions