Skip to content

Commit d7ae3f1

Browse files
ehsavoieclaude
andcommitted
fix: Correct JSON format for SecurityScheme and Security in test data
Fixed AgentCard JSON test payload to use proper protobuf JSON format: - Changed SecurityScheme from flat `{"scheme": "openIdConnect", ...}` to oneof wrapper format `{"openIdConnectSecurityScheme": {...}}` - Changed Security from flat `{"google": [...]}` to proper structure `{"schemes": {"google": {"list": [...]}}}` This aligns with the protobuf message definitions where SecurityScheme uses a oneof field and Security uses a map<string, StringList>. Fixes A2ACardResolverTest failures. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent a31ab29 commit d7ae3f1

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

http-client/src/test/java/io/a2a/client/http/JsonMessages.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,12 @@ public class JsonMessages {
3030
},
3131
"securitySchemes": {
3232
"google": {
33-
"type": "openIdConnect",
34-
"openIdConnectUrl": "https://accounts.google.com/.well-known/openid-configuration"
33+
"openIdConnectSecurityScheme": {
34+
"openIdConnectUrl": "https://accounts.google.com/.well-known/openid-configuration"
35+
}
3536
}
3637
},
37-
"security": [{ "google": ["openid", "profile", "email"] }],
38+
"security": [{ "schemes": { "google": { "list": ["openid", "profile", "email"] } } }],
3839
"defaultInputModes": ["application/json", "text/plain"],
3940
"defaultOutputModes": ["application/json", "image/png"],
4041
"skills": [
@@ -102,11 +103,12 @@ public class JsonMessages {
102103
},
103104
"securitySchemes": {
104105
"google": {
105-
"type": "openIdConnect",
106-
"openIdConnectUrl": "https://accounts.google.com/.well-known/openid-configuration"
106+
"openIdConnectSecurityScheme": {
107+
"openIdConnectUrl": "https://accounts.google.com/.well-known/openid-configuration"
108+
}
107109
}
108110
},
109-
"security": [{ "google": ["openid", "profile", "email"] }],
111+
"security": [{ "schemes": { "google": { "list": ["openid", "profile", "email"] } } }],
110112
"defaultInputModes": ["application/json", "text/plain"],
111113
"defaultOutputModes": ["application/json", "image/png"],
112114
"skills": [

0 commit comments

Comments
 (0)