in-memory-tasks #3

Merged
Rich merged 3 commits from demophoon/donezo:in-memory-tasks into main 2026-06-08 13:27:27 -07:00
Collaborator

This is a poc for in-memory tests

This is a poc for in-memory tests
Owner

I might be doing something wrong but I'm having trouble getting the start/end dates to be accepted. This JSON payload:

{
  "title": "Test task",
  "description": "This is a task to test adding new tasks",
  "frequency": "DAILY",
  "interval": 1
}

produces this task:

{
    "description": "This is a task to test adding new tasks",
    "id": "97236ce2-224a-4447-81b3-d255a92ca349",
    "recurrence": {
        "frequency": "DAILY",
        "interval": 1
    },
    "title": "Test task"
}

but this payload

{
  "title": "Test task",
  "description": "This is a task to test adding new tasks",
  "frequency": "DAILY",
  "interval": 1,
  "startDateUnix": 1780681320
}

throws a 422:

HTTP/1.1 422 Unprocessable Entity
Content-Length: 363
Content-Type: application/problem+json
Date: Fri, 05 Jun 2026 17:42:10 GMT

{
    "$schema": "http://localhost:8888/api/v1/schemas/ErrorModel.json",
    "detail": "validation failed",
    "errors": [
        {
            "location": "body.startDateUnix",
            "message": "unexpected property",
            "value": {
                "description": "This is a task to test adding new tasks",
                "frequency": "DAILY",
                "interval": 1,
                "startDateUnix": 1780681320,
                "title": "Test task"
            }
        }
    ],
    "status": 422,
    "title": "Unprocessable Entity"
}
I might be doing something wrong but I'm having trouble getting the start/end dates to be accepted. This JSON payload: ```json { "title": "Test task", "description": "This is a task to test adding new tasks", "frequency": "DAILY", "interval": 1 } ``` produces this task: ```json { "description": "This is a task to test adding new tasks", "id": "97236ce2-224a-4447-81b3-d255a92ca349", "recurrence": { "frequency": "DAILY", "interval": 1 }, "title": "Test task" } ``` but this payload ```json { "title": "Test task", "description": "This is a task to test adding new tasks", "frequency": "DAILY", "interval": 1, "startDateUnix": 1780681320 } ``` throws a 422: ```json HTTP/1.1 422 Unprocessable Entity Content-Length: 363 Content-Type: application/problem+json Date: Fri, 05 Jun 2026 17:42:10 GMT { "$schema": "http://localhost:8888/api/v1/schemas/ErrorModel.json", "detail": "validation failed", "errors": [ { "location": "body.startDateUnix", "message": "unexpected property", "value": { "description": "This is a task to test adding new tasks", "frequency": "DAILY", "interval": 1, "startDateUnix": 1780681320, "title": "Test task" } } ], "status": 422, "title": "Unprocessable Entity" } ```
Owner

It was my fault, those keys are wrong. This payload works:

{
  "title": "Test task",
  "description": "This is a test task for in-memory tasks",
  "frequency": "daily",
  "interval": 1,
  "count": 10,
  "start_date": 1780681320,
  "end_date": 1880681320
}
It was my fault, those keys are wrong. This payload works: ```json { "title": "Test task", "description": "This is a test task for in-memory tasks", "frequency": "daily", "interval": 1, "count": 10, "start_date": 1780681320, "end_date": 1880681320 } ```
Rich changed title from WIP: in-memory-tasks to in-memory-tasks 2026-06-08 13:27:04 -07:00
Rich merged commit b13b17cca8 into main 2026-06-08 13:27:27 -07:00
Rich deleted branch in-memory-tasks 2026-06-08 13:27:27 -07:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Rich/donezo!3
No description provided.