Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: creating an event does not error when the event attribute name is too long #593

Merged
merged 2 commits into from
Jul 22, 2024

Conversation

Cali0707
Copy link
Contributor

From the spec, the requirement for the length of attribute names is only a SHOULD, not a MUST. Currently, if the length is over 20 then the sdk throws an error, which I believe is incorrect because the length requirement is not a MUST.

Proposed Changes

  • When an event attribute has a name lonoger than 2o characters, the SDK does not throw an error anymore

…s too long

Signed-off-by: Calum Murray <cmurray@redhat.com>
Signed-off-by: Calum Murray <cmurray@redhat.com>
Copy link
Contributor

@lholmquist lholmquist left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@lholmquist lholmquist merged commit 6977113 into cloudevents:main Jul 22, 2024
11 checks passed
@lholmquist
Copy link
Contributor

THanks, just released 8.0.2 with the fix

@Cali0707
Copy link
Contributor Author

Thanks @lholmquist !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants