Commit 8e27da5
committed
Simplify OpenApiHelpers Schema initialization
Refactor the `Schema` property in the `OpenApiHelpers` class to remove the nested `Reference` property initialization. The `Schema` property for `MediaTypeNames.Application.ProblemJson` is now directly initialized with an `OpenApiSchemaReference` using `nameof(ProblemDetails)`, reducing complexity and improving readability.1 parent 9936db7 commit 8e27da5
2 files changed
Lines changed: 0 additions & 14 deletions
File tree
- src
- SimpleAuthentication.Swashbuckle/Swagger
- SimpleAuthentication/OpenApi
Lines changed: 0 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | 24 | | |
32 | 25 | | |
33 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | 73 | | |
81 | 74 | | |
82 | 75 | | |
| |||
0 commit comments