CarterCommunity / Carter

Carter is framework that is a thin layer of extension methods and functionality over ASP.NET Core allowing code to be more explicit and most importantly more enjoyable.
MIT License
2.08k stars 175 forks source link

Support securitySchema in OpenApi #162

Closed jchannon closed 5 years ago

jchannon commented 5 years ago

OpenAPI supports security schemas https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#securitySchemeObject that should be supported in Carter's OpenApiOptions class

That will allow it to be set in the components schema and can be applied globally and/or overridden per route by adding an additional property in the RouteMeta class