ppt-tool/backend/api
Vadym Samoilenko 25b70af9fb Fix 422 errors: clientSlice bare fetch, prepare schemaJSON null, update SlideModel validation
- clientSlice: fetchMasterDecks + fetchClientPresentations use apiFetch (adds /ppt-tool basePath)
- useCustomTemplates: parsedLayoutToCompiled generates schemaJSON from elements instead of null
  (null schemaJSON caused 422 on /prepare because backend SlideLayoutModel.json_schema: dict is required)
- presentation.py: update_presentation uses SlideInput (plain Pydantic model with extra='ignore')
  instead of SlideModel (table=True SQLModel) to avoid strict validation causing 422 on /update

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-20 18:26:54 +00:00
..
middlewares Fix slowapi Response parameter issue 2026-02-27 20:29:00 +00:00
v1 Fix 422 errors: clientSlice bare fetch, prepare schemaJSON null, update SlideModel validation 2026-03-20 18:26:54 +00:00
__init__.py Phase 1-2: Foundation + Admin Panel & Client Management 2026-02-26 15:37:17 +00:00
lifespan.py Phase 3: Bug fixes, feature enhancements, and polish 2026-02-27 12:58:52 +00:00
main.py Complete critical security improvements (P0.5-P0.8) 2026-02-27 18:33:58 +00:00