Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/dispatch/plugins/dispatch_slack/models.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Models for Slack command payloads in the Dispatch application."""

from typing import TypedDict, NewType
from pydantic import BaseModel, AnyHttpUrl
from pydantic import BaseModel, AnyHttpUrl, ConfigDict
import logging
from dispatch.enums import DispatchEnum

Expand Down Expand Up @@ -37,6 +37,10 @@ class SubjectMetadata(BaseModel):
channel_id: str | None = None
thread_id: str | None = None

model_config = ConfigDict(
coerce_numbers_to_str=True
) # allow coercion of id from number to string


class AddUserMetadata(SubjectMetadata):
"""Model for metadata when adding users."""
Expand Down
Loading