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

652 B

id type title tags importance confidence created updated
15a8cda0-76d9-4f4d-8f30-ce9430e1d609 solution Fix custom command creator POST validation
major-domo
database
python
fastapi
pydantic
fix
0.6 0.8 2025-12-13T22:31:54.686464+00:00 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.