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
The logic for detecting if the datacontenttype is JSON seems to be contrary to the current spec.
The spec states that:
Such a content type is defined as one having a media subtype equal to json or ending with a +json format extension. That is, a datacontenttype declares JSON-formatted content if its media type, when stripped of parameters, has the form */json or */*+json. If the datacontenttype is unspecified, processing SHOULD proceed as if the datacontenttype had been specified explicitly as application/json
only checks for empty datacontenttype, application/json or text/json, and is not taking into account for example the extension case "application/something+json"
The text was updated successfully, but these errors were encountered:
The logic for detecting if the datacontenttype is JSON seems to be contrary to the current spec.
The spec states that:
but the code at
sdk-java/formats/json-jackson/src/main/java/io/cloudevents/jackson/JsonFormat.java
Line 217 in 9125136
The text was updated successfully, but these errors were encountered: