sandcastle: POST /api/submit — validate submission + logo (#13) #45
No reviewers
Labels
No labels
agent-blocked
agent-working
bug
deferred
enhancement
model-haiku
model-opus
model-sonnet
needs-info
needs-triage
no-triage
priority
product-decision
ready-for-agent
ready-for-human
ready-for-session
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/coa!45
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "sandcastle/worker/20260829-052907-84c8e2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implements plan Task 9 (#13):
POST /api/submitvalidates the multipart submission + logo with no persistence.server/src/multipart.ts—parseSubmissionForm(form)server/src/routes/submit.ts— mounted at/api/submit; 200 / 400 validation / 422 backendserver/src/app.ts— mount +app.onError→ 500 JSONserver/test/submit.test.ts— the plan's five acceptance testsPhase-1 gate held: nothing written to
communities/, nothing rendered, no email.Closes #13 via close-report gate.
Plan Task 9. Phase-1 validate-only endpoint. - server/src/multipart.ts: parseSubmissionForm(form) -> {ok,submission,logo} | {ok:false, issues[]}; validates submission JSON via @coa/schema SubmissionSchema and logo against LOGO_MIME / LOGO_MAX_BYTES, collecting field-path issues. - server/src/routes/submit.ts: POST /api/submit -> 200 accepted (shared or passing self-hosted, backendReport included), 400 validation, 422 backend when a self-hosted probeBackend fails. Validate only; no persistence. - server/src/app.ts: mount /api/submit + app.onError -> 500 JSON. - server/test/submit.test.ts: the plan's five acceptance tests. - STATUS.md: header + log updated. Phase gate held: nothing written to communities/, nothing rendered, no email. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>