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

bug: extra attributes are not validated against the spec #81

Open
richardvflux opened this issue May 21, 2024 · 0 comments
Open

bug: extra attributes are not validated against the spec #81

richardvflux opened this issue May 21, 2024 · 0 comments

Comments

@richardvflux
Copy link

When extra attributes are added to the CloudEvent, they are not being checked for compliance.

The spec says:

CloudEvents attribute names MUST consist of lower-case letters ('a' to 'z') or digits ('0' to '9') from the ASCII character set. Attribute names SHOULD be descriptive and terse and SHOULD NOT exceed 20 characters in length.

But currently anything can be added and it is accepted. It should throw an AttributeException as listed in the errors.rb file.

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

No branches or pull requests

1 participant