Commit 5f2d63c
committed
Improve hub primary tag selection using doc-level tags
The SignalR OpenAPI plugin now determines each hub's primary tag
based on the document-level tags array, ensuring the connection
bar appears above the first visible tag section in Swagger UI.
A fallback is provided for tags not listed in the array.
An integration test was added to verify this behavior.1 parent 87ebeb4 commit 5f2d63c
2 files changed
Lines changed: 44 additions & 4 deletions
File tree
- src/SignalR.OpenApi.SwaggerUi/Resources
- test/SignalR.OpenApi.Tests
Lines changed: 25 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
457 | | - | |
458 | 457 | | |
459 | 458 | | |
460 | 459 | | |
| |||
483 | 482 | | |
484 | 483 | | |
485 | 484 | | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | 485 | | |
490 | 486 | | |
491 | 487 | | |
492 | 488 | | |
493 | 489 | | |
494 | 490 | | |
495 | 491 | | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
496 | 517 | | |
497 | 518 | | |
498 | 519 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
566 | 566 | | |
567 | 567 | | |
568 | 568 | | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
569 | 588 | | |
570 | 589 | | |
571 | 590 | | |
| |||
0 commit comments