Hi DRFers,

I'm using the default OpenAPI schema generator on the latest DRF, and it is
not adding the component section for securitySchemes nor is it adding the
general security block.

Specifically, if i get the the schema with format openapi-json, I don't see:

{
  ...
  "components": {
    ...
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
     }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ]
}

I'm using the default schema generator, my settings for authentication
classes:

    "DEFAULT_AUTHENTICATION_CLASSES": [
        "rest_framework.authentication.SessionAuthentication",
    ],

Any ideas why the securitySchemas aren't showing up in my OpenAPI schema?

Thanks!

-Adam

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-rest-framework+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-rest-framework/CAEP43uNG1J7rK7p%2BCZ%2BFrSHBb6Y7zHxcDo%2BhzSJ36Oy9K0Bo4A%40mail.gmail.com.

Reply via email to