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

server: add better validation to the associations endpoint #194

Merged
merged 1 commit into from
Feb 1, 2022

Conversation

mcginty
Copy link
Collaborator

@mcginty mcginty commented Feb 1, 2022

Previously, the server didn't care too much about what the parameters for an association were - this adds more proper validation to the inputs to avoid any odd situations.

@mcginty mcginty merged commit b6ce16b into main Feb 1, 2022
@mcginty mcginty deleted the association-uniqueness branch February 1, 2022 04:53
Copy link
Member

@strohel strohel left a comment

Choose a reason for hiding this comment

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

Looks good, and thanks for the nice tests. I've added one supernit for the sake of exercise. ;-)

&contents,
)
.await;
assert!(!res.status().is_success());
Copy link
Member

Choose a reason for hiding this comment

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

Super-nit: using .is_client_error() as already done above could be a tiny bit more descriptive here.

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