RapiDoc
RapiDoc copied to clipboard
Javascript error when rendering empty securitySchema
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.