You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/core/event_handler/api_gateway.md
+1-2
Original file line number
Diff line number
Diff line change
@@ -1032,8 +1032,7 @@ Below is an example configuration for serving Swagger UI from a custom path or C
1032
1032
???-info "Does Powertools implement any of the security schemes?"
1033
1033
No. Powertools adds support for generating OpenAPI documentation with [security schemes](https://swagger.io/docs/specification/authentication/), but it doesn't implement any of the security schemes itself, so you must implement the security mechanisms separately.
1034
1034
1035
-
OpenAPI uses the term security scheme for [authentication and authorization schemes](https://swagger.io/docs/specification/authentication/){target="_blank"}.
1036
-
When you're describing your API, declare security schemes at the top level, and reference them globally or per operation.
1035
+
Security schemes are declared at the top-level first. You can reference them globally or on a per path _(operation)_ level. **However**, if you reference security schemes that are not defined at the top-level it will lead to a `SchemaValidationError`_(invalid OpenAPI spec)_.
0 commit comments