From 94837f8d24073889de01a561e6258d40205c46cb Mon Sep 17 00:00:00 2001 From: mr Date: Tue, 17 Mar 2026 15:31:25 +0100 Subject: [PATCH] kicks out Required not Required --- models/resources/resource.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/models/resources/resource.go b/models/resources/resource.go index b001059..7cb79b5 100755 --- a/models/resources/resource.go +++ b/models/resources/resource.go @@ -21,11 +21,11 @@ import ( type AbstractResource struct { utils.AbstractObject // AbstractObject contains the basic fields of an object (id, name) - Type string `json:"type,omitempty" bson:"type,omitempty"` // Type is the type of the resource - Logo string `json:"logo,omitempty" bson:"logo,omitempty" validate:"required"` // Logo is the logo of the resource - Description string `json:"description,omitempty" bson:"description,omitempty"` // Description is the description of the resource - ShortDescription string `json:"short_description,omitempty" bson:"short_description,omitempty" validate:"required"` // ShortDescription is the short description of the resource - Owners []utils.Owner `json:"owners,omitempty" bson:"owners,omitempty"` // Owners is the list of owners of the resource + Type string `json:"type,omitempty" bson:"type,omitempty"` // Type is the type of the resource + Logo string `json:"logo,omitempty" bson:"logo,omitempty"` // Logo is the logo of the resource + Description string `json:"description,omitempty" bson:"description,omitempty"` // Description is the description of the resource + ShortDescription string `json:"short_description,omitempty" bson:"short_description,omitempty"` // ShortDescription is the short description of the resource + Owners []utils.Owner `json:"owners,omitempty" bson:"owners,omitempty"` // Owners is the list of owners of the resource UsageRestrictions string `bson:"usage_restrictions,omitempty" json:"usage_restrictions,omitempty"` AllowedBookingModes map[booking.BookingMode]*pricing.PricingVariation `bson:"allowed_booking_modes" json:"allowed_booking_modes"` }