claude-memory/graph/solutions/fix-custom-command-creator-post-validation-15a8cd.md
Cal Corum b140d4d82a migrate: 313 memories from MemoryGraph
- 313 new markdown files created
- 30 relationships embedded
- 313 entries indexed
- State initialized with usage data
2026-02-13 11:11:48 -06:00

13 lines
652 B
Markdown

---
id: 15a8cda0-76d9-4f4d-8f30-ce9430e1d609
type: solution
title: "Fix custom command creator POST validation"
tags: [major-domo, database, python, fastapi, pydantic, fix]
importance: 0.6
confidence: 0.8
created: "2025-12-13T22:31:54.686464+00:00"
updated: "2025-12-13T22:31:54.686464+00:00"
---
CustomCommandCreatorModel in database API had 'id: int' as required field, causing 422 errors when Discord bot tried to create new creators via POST. Changed to 'id: Optional[int] = None' since database auto-generates IDs. File: app/routers_v3/custom_commands.py:23. Lesson: Pydantic models for POST (create) endpoints should use Optional for ID fields.