diff --git a/CLAUDE.md b/CLAUDE.md index efbc93e..542521c 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -72,6 +72,7 @@ app/ - **Models**: Pydantic models for request/response validation - **Database Access**: Direct Peewee ORM queries with automatic connection pooling - **Response Format**: Consistent JSON with proper HTTP status codes +- **POST Requests**: Pydantic models for POST (create) endpoints should use `Optional[int] = None` for `id` fields since the database auto-generates IDs ### Environment Variables **Required**: diff --git a/VERSION b/VERSION index 276cbf9..2bf1c1c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.3.0 +2.3.1 diff --git a/app/routers_v3/custom_commands.py b/app/routers_v3/custom_commands.py index bff9900..c6e8fca 100644 --- a/app/routers_v3/custom_commands.py +++ b/app/routers_v3/custom_commands.py @@ -20,7 +20,7 @@ router = APIRouter( # Pydantic Models for API class CustomCommandCreatorModel(BaseModel): - id: int + id: Optional[int] = None # Optional for POST (auto-generated), required on response discord_id: int username: str display_name: Optional[str] = None