Commit 5f742ae
fix: Return UnsupportedOperationError when extendedAgentCard capabili… (#736)
…ty is disabled
GetExtendedAgentCard now checks if the capability is enabled before
checking if the card is configured. When capability is false, returns
501/UNIMPLEMENTED with UnsupportedOperationError instead of
400/FAILED_PRECONDITION.
Applied to all three transports: HTTP+JSON, JSON-RPC, and gRPC.
Fixes #733
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 56c1960 commit 5f742ae
4 files changed
Lines changed: 14 additions & 3 deletions
File tree
- transport
- grpc/src/main/java/io/a2a/transport/grpc/handler
- jsonrpc/src
- main/java/io/a2a/transport/jsonrpc/handler
- test/java/io/a2a/transport/jsonrpc/handler
- rest/src/main/java/io/a2a/transport/rest/handler
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
546 | 546 | | |
547 | 547 | | |
548 | 548 | | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
549 | 553 | | |
550 | 554 | | |
551 | 555 | | |
| |||
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
667 | 668 | | |
668 | 669 | | |
669 | 670 | | |
670 | | - | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
671 | 675 | | |
672 | 676 | | |
673 | 677 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1541 | 1541 | | |
1542 | 1542 | | |
1543 | 1543 | | |
1544 | | - | |
| 1544 | + | |
1545 | 1545 | | |
1546 | 1546 | | |
1547 | 1547 | | |
| |||
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
794 | 794 | | |
795 | 795 | | |
796 | 796 | | |
797 | | - | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
798 | 801 | | |
799 | 802 | | |
800 | 803 | | |
| |||
0 commit comments