Skip to content

Commit

Permalink
Implement validation rules in backend (#42)
Browse files Browse the repository at this point in the history
* Move `polling_station ` structs to new module

* Update Cargo dependencies

* Update `openapi.json` using Lefthook

* Implement validation of polling station data entry

* Always return JSON response from data entry API

* Warn when using unwrap in non-test code

And remove Hello World API endpoint.

* Move lint configuration to config files

And also lint tests using Clippy in CI.

* Expand validation integration test assertions
  • Loading branch information
praseodym authored May 17, 2024
1 parent 25e6ce6 commit 2cd3165
Show file tree
Hide file tree
Showing 12 changed files with 831 additions and 290 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ jobs:
- name: Check rustfmt
run: cargo fmt --all -- --check
- name: Check clippy
run: cargo clippy -- -D warnings
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Run tests
run: cargo test --verbose
Loading

0 comments on commit 2cd3165

Please sign in to comment.