Skip to content

Javascript error when rendering empty securitySchema #920

@grobitto

Description

@grobitto

I have two security schemas defined - anonymous and bearer, here is the corresponding part of my schema

    "securitySchemes" : {
      "anonymous" : { },
      "bearerAuth" : {
        "type" : "http",
        "scheme" : "bearer",
        "bearerFormat" : "JWT"
      }
    }

I've got javascript exception running this schema in Rapidoc, at this code:

<tr id="security-scheme-${v.securitySchemeId}" class="${v.type.toLowerCase()}">

v.type is undefined in my case, which causes Authentication tab to crash.

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