From 48bae8352148b58132685ecd24deb65cf24a81e9 Mon Sep 17 00:00:00 2001 From: Omer Sabic Date: Fri, 7 Jun 2024 21:34:52 +0200 Subject: [PATCH] added nullable params to website --- src/routes/dashboard.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/routes/dashboard.js b/src/routes/dashboard.js index 01f87c8..7259bcd 100644 --- a/src/routes/dashboard.js +++ b/src/routes/dashboard.js @@ -307,18 +307,18 @@ export const dashboardRoutes = (fastify, _, done) => { type: "boolean" }, freebie_name: { - type: "string" + type: ["string", "null"] }, freebie_url: { - type: "string", + type: ["string", "null"], format: "uri" }, freebie_image_url: { - type: "string", + type: ["string", "null"], format: "uri" }, freebie_text: { - type: "string", + type: ["string", "null"] }, title: { type: "string", @@ -327,7 +327,7 @@ export const dashboardRoutes = (fastify, _, done) => { type: "string", }, domain: { - type: "string" + type: ["string", "null"] } }, required: ["id"]