Commit d276bbe
Wraith Protocol Dev
fix(validation): resolve merge conflicts with upstream/main
Rebased onto upstream/main which had evolved schemas.ts significantly:
- Upstream added imageUrlSchema for base64 data URL support
- Upstream tightened title (min 4, max 80) and description (min 20, max 500)
- Upstream added parseTimelineQuery, comment schemas, parseAssetCodes,
parseIso8601Timestamp, typed field param in parsePositiveIntegerQueryParam,
include_archived alias for includeDeleted, and a full parseCampaignListQuery
Our additions carried forward on top:
- validateBody returns 422 (was 400) - tests updated to match
- updateMetadataPayloadSchema using upstream constraint levels
- PATCH /api/campaigns/:id/metadata route in index.ts (unchanged)1 parent 4a583c6 commit d276bbe
2 files changed
Lines changed: 301 additions & 170 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
67 | | - | |
| 65 | + | |
68 | 66 | | |
69 | 67 | | |
70 | 68 | | |
| |||
0 commit comments