Commit 2d35869
committed
Refactor security scheme naming in AuthDocumentTransformer
Updated the naming convention for security schemes in the
`AuthenticationDocumentTransformer` class. The new format
appends a suffix to the scheme name (e.g., "-Header" and
"-QueryString") instead of using descriptive phrases. This
change enhances consistency and clarity in the generated
documentation for both header and query string security schemes.
Refactor security scheme naming in OpenAPI document
This update changes the naming convention for security schemes added to the OpenAPI document. Instead of descriptive strings that include the scheme name and location, the new implementation appends a suffix to the scheme name (e.g., `"{settings.SchemeName}-Header"` for headers and `"{settings.SchemeName}-QueryString"` for query strings). This improves consistency, clarity, and maintainability of the security scheme definitions.1 parent 51e6709 commit 2d35869
File tree
1 file changed
+8
-4
lines changed- src/SimpleAuthentication/OpenApi
1 file changed
+8
-4
lines changedLines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
62 | | - | |
63 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
64 | 68 | | |
65 | 69 | | |
66 | 70 | | |
| |||
0 commit comments