From 0b493f41dc658d887ca30ccc26775b8f8fda0dfe Mon Sep 17 00:00:00 2001 From: Scott Brown <71395931+xscottxbrownx@users.noreply.github.com> Date: Mon, 2 Jan 2023 13:44:00 -0800 Subject: [PATCH] Removing "required" from line 13 CUSTOMEMBED.go (#22) * Removing "required" from line 13 CUSTOMEMBED.go * updating label: archive->trasncripts Co-authored-by: Ryan <29165304+rxdn@users.noreply.github.com> --- frontend/src/components/manage/SettingsCard.svelte | 2 +- utils/types/customembed.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/manage/SettingsCard.svelte b/frontend/src/components/manage/SettingsCard.svelte index b3512ef..4000be1 100644 --- a/frontend/src/components/manage/SettingsCard.svelte +++ b/frontend/src/components/manage/SettingsCard.svelte @@ -45,7 +45,7 @@ Tickets
- diff --git a/utils/types/customembed.go b/utils/types/customembed.go index d02062d..93ed3e8 100644 --- a/utils/types/customembed.go +++ b/utils/types/customembed.go @@ -10,7 +10,7 @@ type CustomEmbed struct { Title *string `json:"title" validate:"omitempty,min=1,max=255"` Description *string `json:"description" validate:"omitempty,min=1,max=4096"` Url *string `json:"url" validate:"omitempty,url,max=255"` - Colour Colour `json:"colour" validate:"required,gte=0,lte=16777215"` + Colour Colour `json:"colour" validate:"gte=0,lte=16777215"` Author Author `json:"author" validate:"dive"` ImageUrl *string `json:"image_url" validate:"omitempty,url,max=255"` ThumbnailUrl *string `json:"thumbnail_url" validate:"omitempty,url,max=255"`