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