RapiDoc icon indicating copy to clipboard operation
RapiDoc copied to clipboard

Question: hide Auth icon (lock) when security object is empty?

Open bandantonio opened this issue 1 year ago • 0 comments

Hi, thanks for this great tool! We're using it as an automated multi-spec API Explorer and everything works pretty well.

However, recently I've come across one case, and I'm wondering is it possible to somehow hide the Auth icon (lock) when security schema object is empty?

For example:

/rest:
    summary: 'test'
    get:
      parameters:
      ...
      security: []
      responses:
      ...

which leads to ambiguity on the UI: now

According to the OpenAPI specification, this object is optional and when it is not specified, there is no lock. The problem is that our OpenAPI specs are generated automatically from the code, and the tool intentionally adds the security schema object to each endpoint, even if it doesn't require authorization (like shown above). And I don't know whether it is possible to alter this behavior. Any thoughts?

Thank you.

bandantonio avatar Aug 04 '22 09:08 bandantonio