Commit 46eb34c
authored
fix(apiserver): register OpenAPI v2 spec for aggregation (#1803)
* fix(apiserver): register OpenAPI v2 spec for aggregation
Signed-off-by: Himanshu Singh <himansh.singh3@gmail.com>
* fix(apiserver): initialize OpenAPI specs before applyTo and enforce v3 version
This commit addresses OpenAPI spec generation issues by ensuring both V2 and V3 configurations are instantiated before calling 'recommendedOptions.ApplyTo(serverConfig)'. This allows the authentication wiring to properly decorate the OpenAPI security definitions. Additionally, it explicitly sets the V3 spec 'Info.Version' to 'v1alpha1' to satisfy strict OpenAPI schema requirements.
Signed-off-by: Himanshu Singh <himansh.singh3@gmail.com>
---------
Signed-off-by: Himanshu Singh <himansh.singh3@gmail.com>1 parent 3d7a222 commit 46eb34c
1 file changed
Lines changed: 15 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | 234 | | |
238 | 235 | | |
239 | 236 | | |
240 | 237 | | |
241 | 238 | | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
242 | 254 | | |
243 | 255 | | |
244 | 256 | | |
| |||
0 commit comments