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

feat: disallow events with unexpected fields via the http api #363

Merged
merged 2 commits into from
May 30, 2024

Conversation

stbrody
Copy link
Collaborator

@stbrody stbrody commented May 21, 2024

builds on #362.

There was no easy way to unit test this change, but I have a PR ready for a test in ceramic-tests that will exercise this: 3box/ceramic-tests#129

@stbrody stbrody self-assigned this May 21, 2024
@stbrody stbrody temporarily deployed to github-tests-2024 May 21, 2024 20:16 — with GitHub Actions Inactive
@stbrody stbrody requested review from dav1do and nathanielc May 21, 2024 20:27
Copy link
Contributor

@dav1do dav1do left a comment

Choose a reason for hiding this comment

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

A couple small things but overall seems good.

api/src/server/event.rs Outdated Show resolved Hide resolved
api/src/server/event.rs Outdated Show resolved Hide resolved
api/src/server/event.rs Outdated Show resolved Hide resolved
event/src/unvalidated/payload/init.rs Show resolved Hide resolved
Base automatically changed from no-unexpected-in-http-api to main May 29, 2024 19:26
@stbrody stbrody force-pushed the no-unexpected-in-http-api-phase-2 branch from 87e2fb8 to b02285e Compare May 30, 2024 21:23
@stbrody stbrody enabled auto-merge May 30, 2024 21:30
@stbrody stbrody temporarily deployed to github-tests-2024 May 30, 2024 21:39 — with GitHub Actions Inactive
@stbrody stbrody added this pull request to the merge queue May 30, 2024
Merged via the queue into main with commit f1c2a6f May 30, 2024
5 checks passed
@stbrody stbrody deleted the no-unexpected-in-http-api-phase-2 branch May 30, 2024 22:03
@smrz2001 smrz2001 mentioned this pull request Jun 3, 2024
dav1do pushed a commit that referenced this pull request Jun 4, 2024
* feat: disallow events with unexpected fields via the http api

* review comments
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