Skip to content

fix(spec): prefer application/a2a+json in HTTP binding - #1753

Merged
spetschulatSFDC merged 2 commits into
a2aproject:mainfrom
madankumarpichamuthu:fix/1748-http-binding-content-type
Apr 21, 2026
Merged

spetschulatSFDC merged 2 commits into
a2aproject:mainfrom
madankumarpichamuthu:fix/1748-http-binding-content-type

Conversation

@madankumarpichamuthu

Copy link
Copy Markdown
Contributor

Summary

  • Updates HTTP+JSON/REST binding guidance to state that application/a2a+json SHOULD be used for request/response payloads.
  • Aligns HTTP A2A examples in the spec to use Content-Type: application/a2a+json.
  • Keeps JSON-RPC-specific /rpc example on application/json to avoid changing JSON-RPC semantics.

Why

Issue #1748 identified inconsistent guidance: Section 11.1 said application/json, while many HTTP examples and the registered A2A media type (application/a2a+json) already pointed to A2A-specific media typing.

This change resolves that inconsistency and improves interoperability clarity for HTTP+JSON implementations.

Fixes #1748

Update HTTP+JSON binding requirements and examples to use application/a2a+json, aligning with the registered A2A media type and existing HTTP binding examples.

Made-with: Cursor
@madankumarpichamuthu
madankumarpichamuthu requested a review from a team as a code owner April 15, 2026 04:30

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the specification to use application/a2a+json as the standard content type instead of application/json across various HTTP examples and protocol requirements. It also includes minor formatting improvements to the error mapping table. A suggestion was made to bold the normative keyword 'SHOULD' in the protocol requirements section to maintain consistency with RFC 2119 conventions.

Comment thread docs/specification.md Resolved
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@Tehsmash
Tehsmash self-requested a review April 21, 2026 16:53
@spetschulatSFDC
spetschulatSFDC merged commit 7ff1004 into a2aproject:main Apr 21, 2026
7 checks passed
msampathkumar added a commit that referenced this pull request May 28, 2026
Add release notes for A2A - Python SDK v1.0.1
---
## [1.0.1](v1.0.0...v1.0.1)
(2026-04-23)

### Bug Fixes
* **spec:** prefer application/a2a+json in HTTP binding
([#1753](#1753))
([7ff1004](7ff1004))
* **spec:** recent transcoding-related error changes
([#1627](#1627))
([757f0ec](757f0ec))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: Sampath Kumar <sam1990kumar@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: HTTP Binding incorrectly states to use application/json

4 participants