Skip to content

Commit

Permalink
Add global "security" section to swagger openapi schema
Browse files Browse the repository at this point in the history
Hopefully enables ApiKeyAuth for all endpoints for proper usage with OpenAPI Generator.
  • Loading branch information
holgerstolzenberg committed Nov 6, 2024
1 parent e0a000f commit 688e3bd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@

# Dependency directories (remove the comment below to include it)
# vendor/

# IDE's
.idea/
5 changes: 5 additions & 0 deletions proto/apidocs.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -3030,6 +3030,11 @@
"in": "header"
}
},
"security": [
{
"ApiKeyAuth": []
}
],
"externalDocs": {
"description": "More about the Authzed API.",
"url": "https://docs.authzed.com/reference/api"
Expand Down

0 comments on commit 688e3bd

Please sign in to comment.