Skip to content

fix: throw on validation if extensions are improperly named - #420

Merged
lance merged 1 commit into
cloudevents:mainfrom
lance:lance/380-extension-names
May 24, 2021
Merged

lance merged 1 commit into
cloudevents:mainfrom
lance:lance/380-extension-names

Conversation

@lance

@lance lance commented May 21, 2021

Copy link
Copy Markdown
Member

Also fixes the case where UPPERCASED extension names were silently changed
to lowercase and then set as undefined. Even though uppercased extension
names are invalid, we should still accept them in incoming messsages and
only throw when validating the event.

Fixes: #380

Signed-off-by: Lance Ball lball@redhat.com

Also fixes the case where UPPERCASED extension names were silently changed
to lowercase and then set as undefined. Even though uppercased extension
names are invalid, we should still accept them in incoming messsages and
only throw when validating the event.

Fixes: cloudevents#380

Signed-off-by: Lance Ball <lball@redhat.com>
@lance lance added type/fix A change that fixes something that is broken module/lib Related to the main source code labels May 21, 2021
@lance
lance requested a review from a team May 21, 2021 19:03
@lance lance self-assigned this May 21, 2021
@lance
lance merged commit 7f6b658 into cloudevents:main May 24, 2021
@lance
lance deleted the lance/380-extension-names branch May 24, 2021 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module/lib Related to the main source code type/fix A change that fixes something that is broken

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SHOULD throw if extension attributes are NOT following naming convention?

2 participants