Skip to content

pluginLoadType: "chain" not working #7730

@Axiloom

Description

@Axiloom

Q&A (please complete the following information)

  • OS: macOS
  • Browser: chrome
  • Version: 96.0.4664.110
  • Method of installation: dist assets
  • Swagger-UI version: 4.1.3
  • Swagger/OpenAPI version: OpenAPI 3.0

Swagger-UI configuration options:

const ui = SwaggerUIBundle({
    url: baseRootUrl + "/test/openapi.json",
    dom_id: '#swagger-ui',
    docExpansion: 'none',
    tagsSorter: 'alpha',
    operationsSorter: 'alpha',
    deepLinking: true,
    pluginsOptions: {pluginLoadType: "chain"},
    presets: [
        SwaggerUIBundle.presets.apis,
        SwaggerUIStandalonePreset
    ],
    plugins: [
        CollapsibleInfoPlugin,
        ExtendedInfoPlugin
    ],
    layout: "StandaloneLayout"
});

Screenshots

Screen Shot 2022-01-12 at 3 19 47 PM

How can we help?

When I have pluginsOptions set to pluginsOptions: {pluginLoadType: "legacy"}, the error above does not display, but only one of my plugins works (both my plugins wrap the same component; info). I want to be able to chain load these plugins, but can't seem to do it

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions