Skip to content

Validate extension names - #246

Merged
lholmquist merged 1 commit into
cloudevents:masterfrom
lholmquist:228-extension-values-conform
Jul 15, 2020
Merged

lholmquist merged 1 commit into
cloudevents:masterfrom
lholmquist:228-extension-values-conform

Conversation

@lholmquist

Copy link
Copy Markdown
Contributor

This validates the extension names based on the spec, https://github.com/cloudevents/spec/blob/master/spec.md#attribute-naming-convention

fixes #228

Signed-off-by: Lucas Holmquist lholmqui@redhat.com

Signed-off-by: Lucas Holmquist <lholmqui@redhat.com>
@lholmquist
lholmquist marked this pull request as ready for review July 14, 2020 14:32
@lholmquist
lholmquist requested review from a team, fabiojose, grant and lance and removed request for a team July 14, 2020 14:34
@lholmquist

Copy link
Copy Markdown
Contributor Author

While #229 is also related, i'm going to split them into 2 PRs

@lance lance left a comment

Copy link
Copy Markdown
Member

@lholmquist

lholmquist commented Jul 14, 2020 •

Copy link
Copy Markdown
Contributor Author

surprised there weren't more changes required to the tests.

I guess you wrote them perfectly :)

for the examples, yea, we are going to need to update them. which might be good to do in its own PR

@lance

lance commented Jul 14, 2020

Copy link
Copy Markdown
Member

for the examples, yea, we are going to need to update them. which might be good to do in its own PR

Sounds good. I've added #249

@lance
lance self-requested a review July 14, 2020 20:44
@lholmquist
lholmquist merged commit 84f1ed9 into cloudevents:master Jul 15, 2020
@lance lance mentioned this pull request Jul 24, 2020
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.

CloudEvent should only allow [^a-z|0-9$] for extension names

3 participants