Skip to content

Version 3.0.4 not supported by the code #10502

@pratik73

Description

@pratik73

Q&A (please complete the following information)

  • OS: Windows
  • Browser: Chrome
  • Version: [e.g. 22]
  • Method of installation: npm
  • Swagger-UI version: 5.17.14
  • Swagger/OpenAPI version: OpenAPI 3.0

Content & configuration

Example Swagger/OpenAPI definition:

openapi: 3.0.4

Swagger-UI configuration options:

SwaggerUI({
  // your config options here
})
?yourQueryStringConfig

Describe the bug you're encountering

To reproduce...

Steps to reproduce the behavior:
I am running Backstage in my local with an openapi that I wanted to render
it works for version 3.0.3 and 3.1.0 and some other version bbut fails for 3.0.4
I checked the codebase of swagger-ui-react and found out that there is a regex in this file 'src/core/plugins/oas3/helpers.jsx', which only has pattern to support x.x.[0 to 3]

Expected behavior

We need to update that to support more minor versions or not release more than .3 in minor versions.

Screenshots

Additional context or thoughts

Metadata

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