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
Core JSONFormat treats mixed-case JSON media types as text #340
application/json and Application/JSON should produce the same data type. Media type and subtype names are case-insensitive (RFC 9110 §8.3.1, CloudEvents datacontenttype).
Actual behavior
The core JSON formatter reads the same binary-mode body as a dict for one spelling and a string for the other. When writing a structured event, it also turns a dict into a string for mixed-case JSON media types.
This prints dict, then str. This concerns the event payload's datacontenttype in the core formatter, independently of how a binding detects structured mode.
Activity