-
Notifications
You must be signed in to change notification settings - Fork 167
Closed
Milestone
Description
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
*/jsonor*/*+json. If the datacontenttype is unspecified, processing SHOULD proceed as if the datacontenttype had been specified explicitly as application/json
but the code at
sdk-java/formats/json-jackson/src/main/java/io/cloudevents/jackson/JsonFormat.java
Line 217 in 9125136
| return contentType == null || contentType.startsWith("application/json") || contentType.startsWith("text/json"); |
Metadata
Metadata
Assignees
Labels
No labels