cloudevents / cloudevents/sdk-java
JsonFormat doesn't accept valid datacontentypes
Open
Beginner friendly
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 446
- Forks
- 172
- PR merge metrics
- No merged PRs in 30d
Description
The JSON_CONTENT_TYPE_PATTERN in JsonFormat is too restrictive: valid registered media-types like https://www.iana.org/assignments/media-types/media-types.xhtml e.g. vnd.hal+json is not accepted.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating JsonFormat and its JSON_CONTENT_TYPE_PATTERN, then inspect the surrounding validation and any related tests. Update the validation so registered media types such as vnd.hal+json are accepted, and confirm the existing valid and invalid content-type cases still behave correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100