Something went wrong. Try again.
Barazo AppView backend barazo.forum
Something went wrong. Try again.
fix(admin): accept null for nullable settings fields in PUT endpoint (#120) master
The Fastify JSON Schema and Zod validation for PUT /api/admin/settings only accepted string for communityDescription, communityLogoUrl, primaryColor, and accentColor — but the GET response returns null for these fields when unset. The frontend round-trips the null values back, causing Fastify's AJV to reject the request with a 400 before the handler runs. Align both validation layers with the database schema by adding null as an accepted type, matching the existing pattern used by jurisdictionCountry. Fixes barazo-forum/barazo-workspace#TBD
Author Guido X Jansen Committer GitHub Date (Mar 3, 2026, 10:55 AM UTC) Commit 0f0576f8 0f0576f8ac52f5ed1caababae7162127866138fc Parent c73d459e c73d459eafc7c6d8984af98eaf28823a1a08c85a