Issue with auth not applicable to API endpoints requiring authentication [ import swagger.json (open

Hello.

I made a document with swagger in NestJS and then imported swagger.json and am using it.

The current problem is that the security of swagger.json is not applicable.

It follows the openapi 3.0.0 specification.

[swagger.json]

{
  "openapi": "3.0.0",
  "paths": {
    "/v1/users": {
      "post": {
        "description": "Create a new user",
        "operationId": "UserController_createUser",
        "parameters": [],
        "security": [
          {
            "bearer": []
          }
        ],
        "summary": "Create User",
        "tags": [
          "User"
        ]
      }
    },
    "/v1/users/me": {
      "get": {
        "operationId": "UserController_findMe",
        "parameters": [],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "tags": [
          "User"
        ]
      }
    },
  },
  "info": {},
  "tags": [],
  "servers": [],
  "components": {
    "securitySchemes": {
      "bearer": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "type": "http"
      }
    },
    "schemas": {}
  }
}

For endpoints that require bearer authentication, the security entry is included, and the security scheme is also defined.

It also works fine with swagger ui.

The problem is that if you import into apidog, auth will not be applied.

Do you know a solution to this problem?

Hello, you can upgrade to version 2.7.23, which supports selecting auth during import.