fix: Improved model validation for Collection (#3749)
* fix: Added improved model validation for Collection attributes * sp * fix: Enforce title length in UI
This commit is contained in:
@@ -22,13 +22,13 @@ import Length from "./validators/Length";
|
||||
@Fix
|
||||
class WebhookSubscription extends ParanoidModel {
|
||||
@NotEmpty
|
||||
@Length({ min: 0, max: 255, msg: "Must be less than 255 characters" })
|
||||
@Length({ max: 255, msg: "Webhook name be less than 255 characters" })
|
||||
@Column
|
||||
name: string;
|
||||
|
||||
@IsUrl
|
||||
@NotEmpty
|
||||
@Length({ min: 0, max: 255, msg: "Must be less than 255 characters" })
|
||||
@Length({ max: 255, msg: "Webhook url be less than 255 characters" })
|
||||
@Column
|
||||
url: string;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user