test the error codes on the task routes

This commit is contained in:
Tamo 2023-01-11 18:50:46 +01:00
parent 5c1a7c3b9a
commit 387874ea26
No known key found for this signature in database
GPG key ID: 20CD8020AFA88D69
3 changed files with 501 additions and 0 deletions

View file

@ -270,6 +270,7 @@ pub struct TaskDateQueryRaw {
pub after_finished_at: Option<String>,
pub before_finished_at: Option<String>,
}
impl TaskDateQueryRaw {
fn validate(self) -> Result<TaskDateQuery, ResponseError> {
let Self {