Skip to content

Conversation

@lholmquist
Copy link

the 3 remaining commits as noted in cloudevents#336 (comment)

deewhyweb and others added 3 commits September 8, 2020 19:30
…vents#334)

Signed-off-by: Philip Hayes <phayes@redhat.com>

Co-authored-by: Philip Hayes <phayes@redhat.com>
Snyk has created this PR to upgrade cloudevents from 3.0.1 to 3.1.0.

See this package in npm:
https://www.npmjs.com/package/cloudevents

See this project in Snyk:
https://app.snyk.io/org/lance/project/cb2960b0-db0c-4e77-9ab2-e78efded812e?utm_source=github&utm_medium=upgrade-pr

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
Signed-off-by: Lucas Holmquist <lholmqui@redhat.com>
* feat: add a constructor parameter for loose validation

This commit adds a second, optional boolean parameter to the `CloudEvent`
constructor. When `false` is provided, the event constructor will not
perform validation of the event properties, values and extension names.

This commit also modifies the ValidationError class so that the error message
string includes the JSON.stringified version of any schema validation
errors. It also makes the HTTP.toEvent() function create CloudEvent
objects with loose/no validation.

Incorporates comments from cloudevents#328

Fixes: cloudevents#325

Signed-off-by: Lance Ball <lball@redhat.com>
@lance
Copy link
Owner

lance commented Sep 9, 2020

@lholmquist I didn't see this until I had already pushed those changes to origin/v3.2.x-backport. Thanks for keeping me on it though!

@lance lance closed this Sep 9, 2020
@lance
Copy link
Owner

lance commented Sep 9, 2020

But oops! I shouldn't have pushed to origin. My bad.

@lance lance reopened this Sep 9, 2020
@lance lance merged commit c351e34 into lance:v3.2.x-backport Sep 9, 2020
@lance
Copy link
Owner

lance commented Sep 9, 2020

Uhh and I still screwed the pooch by squashing all three. I am going to fix this now.

@lholmquist
Copy link
Author

lol 🤦

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.

3 participants