RapiDoc icon indicating copy to clipboard operation
RapiDoc copied to clipboard

Javascript error when rendering empty securitySchema

Open grobitto opened this issue 2 years ago • 0 comments

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.

grobitto avatar Apr 26 '23 08:04 grobitto