Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Validate that source is non-empty
URI references can be empty - we have a test proving that. But the source attribute is required to be non-empty, so we should validate that. This bug fix is a breaking change for anyone who was previously creating (and then validating) CloudEvent instances with a present-but-empty source. However, their events were already broken, and we'd expect them to cause issues with other consumers (at least any performing comprehensive validation). Signed-off-by: Jon Skeet <jonskeet@google.com>
- Loading branch information
Showing
2 changed files
with
17 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters