You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: optional tenant in spec vs non-null tenant + misleading docs in Java SDK #844
The A2A protocol allows listing tasks without a tenant (e.g. GET /tasks as the primary HTTP binding). The Java SDK models tenant on ListTasksParams in a way that conflicts with how other optional parameters are modeled: tenant must be non-null (empty string is used for “unset”), while sibling optional fields use @nullable and null. Javadoc also claims InvalidParamsError for null tenant, but the code uses Assert.checkNotNullParam, which throws IllegalArgumentException.
Should tenant be made nullable so it does not have to be provided on List tasks and/or other requests?
When we used a2a in the project, request all went through the gateway.
Our gateway path is tenant-specific by itself, so we did not utilize the official tenant division capability. Otherwise, there will be two tenant identifiers in the URL path.
I think it should not be mandatory to divide the tenants?
Activity
Wesley273 commentedon Jun 2, 2026
When we used a2a in the project, request all went through the gateway.
Our gateway path is tenant-specific by itself, so we did not utilize the official tenant division capability. Otherwise, there will be two tenant identifiers in the URL path.
I think it should not be mandatory to divide the tenants?
refactor: use @nullable String for tenant across all spec params records
refactor: use @nullable String for tenant across all spec params reco…
refactor: use @nullable String for tenant across all spec params reco…