Skip to content

3 more commits for the backport #2

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

Merged
merged 3 commits into from
Sep 9, 2020

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
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 <[email protected]>
Signed-off-by: Lucas Holmquist <[email protected]>
* 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 <[email protected]>
@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