Remove @Length validation for image fields
This commit is contained in:
parent
f70aa61c08
commit
0ae62e7a57
@ -38,7 +38,6 @@ public class DashboardInfo extends BaseData<DashboardId> implements HasName, Has
|
|||||||
@NoXss
|
@NoXss
|
||||||
@Length(fieldName = "title")
|
@Length(fieldName = "title")
|
||||||
private String title;
|
private String title;
|
||||||
@Length(fieldName = "image", max = 1000000)
|
|
||||||
private String image;
|
private String image;
|
||||||
@Valid
|
@Valid
|
||||||
private Set<ShortCustomerInfo> assignedCustomers;
|
private Set<ShortCustomerInfo> assignedCustomers;
|
||||||
|
|||||||
@ -54,7 +54,6 @@ public class DeviceProfile extends BaseData<DeviceProfileId> implements HasName,
|
|||||||
@NoXss
|
@NoXss
|
||||||
@ApiModelProperty(position = 11, value = "Device Profile description. ")
|
@ApiModelProperty(position = 11, value = "Device Profile description. ")
|
||||||
private String description;
|
private String description;
|
||||||
@Length(fieldName = "image", max = 1000000)
|
|
||||||
@ApiModelProperty(position = 12, value = "Either URL or Base64 data of the icon. Used in the mobile application to visualize set of device profiles in the grid view. ")
|
@ApiModelProperty(position = 12, value = "Either URL or Base64 data of the icon. Used in the mobile application to visualize set of device profiles in the grid view. ")
|
||||||
private String image;
|
private String image;
|
||||||
private boolean isDefault;
|
private boolean isDefault;
|
||||||
|
|||||||
@ -52,7 +52,6 @@ public class AssetProfile extends BaseData<AssetProfileId> implements HasName, H
|
|||||||
@NoXss
|
@NoXss
|
||||||
@ApiModelProperty(position = 11, value = "Asset Profile description. ")
|
@ApiModelProperty(position = 11, value = "Asset Profile description. ")
|
||||||
private String description;
|
private String description;
|
||||||
@Length(fieldName = "image", max = 1000000)
|
|
||||||
@ApiModelProperty(position = 12, value = "Either URL or Base64 data of the icon. Used in the mobile application to visualize set of asset profiles in the grid view. ")
|
@ApiModelProperty(position = 12, value = "Either URL or Base64 data of the icon. Used in the mobile application to visualize set of asset profiles in the grid view. ")
|
||||||
private String image;
|
private String image;
|
||||||
private boolean isDefault;
|
private boolean isDefault;
|
||||||
|
|||||||
@ -32,7 +32,6 @@ import org.thingsboard.server.common.data.validation.NoXss;
|
|||||||
@JsonPropertyOrder({ "fqn", "name", "deprecated", "image", "description", "descriptor", "externalId" })
|
@JsonPropertyOrder({ "fqn", "name", "deprecated", "image", "description", "descriptor", "externalId" })
|
||||||
public class WidgetTypeDetails extends WidgetType implements HasName, HasTenantId, HasImage, ExportableEntity<WidgetTypeId> {
|
public class WidgetTypeDetails extends WidgetType implements HasName, HasTenantId, HasImage, ExportableEntity<WidgetTypeId> {
|
||||||
|
|
||||||
@Length(fieldName = "image", max = 1000000)
|
|
||||||
@ApiModelProperty(position = 9, value = "Relative or external image URL. Replaced with image data URL (Base64) in case of relative URL and 'inlineImages' option enabled.")
|
@ApiModelProperty(position = 9, value = "Relative or external image URL. Replaced with image data URL (Base64) in case of relative URL and 'inlineImages' option enabled.")
|
||||||
private String image;
|
private String image;
|
||||||
@NoXss
|
@NoXss
|
||||||
|
|||||||
@ -57,7 +57,6 @@ public class WidgetsBundle extends BaseData<WidgetsBundleId> implements HasName,
|
|||||||
@ApiModelProperty(position = 5, value = "Title used in search and UI", accessMode = ApiModelProperty.AccessMode.READ_ONLY)
|
@ApiModelProperty(position = 5, value = "Title used in search and UI", accessMode = ApiModelProperty.AccessMode.READ_ONLY)
|
||||||
private String title;
|
private String title;
|
||||||
|
|
||||||
@Length(fieldName = "image", max = 1000000)
|
|
||||||
@Getter
|
@Getter
|
||||||
@Setter
|
@Setter
|
||||||
@ApiModelProperty(position = 6, value = "Relative or external image URL. Replaced with image data URL (Base64) in case of relative URL and 'inlineImages' option enabled.", accessMode = ApiModelProperty.AccessMode.READ_ONLY)
|
@ApiModelProperty(position = 6, value = "Relative or external image URL. Replaced with image data URL (Base64) in case of relative URL and 'inlineImages' option enabled.", accessMode = ApiModelProperty.AccessMode.READ_ONLY)
|
||||||
@ -66,7 +65,6 @@ public class WidgetsBundle extends BaseData<WidgetsBundleId> implements HasName,
|
|||||||
@NoXss
|
@NoXss
|
||||||
@Length(fieldName = "description", max = 1024)
|
@Length(fieldName = "description", max = 1024)
|
||||||
@Getter
|
@Getter
|
||||||
|
|
||||||
@Setter
|
@Setter
|
||||||
@ApiModelProperty(position = 7, value = "Description", accessMode = ApiModelProperty.AccessMode.READ_ONLY)
|
@ApiModelProperty(position = 7, value = "Description", accessMode = ApiModelProperty.AccessMode.READ_ONLY)
|
||||||
private String description;
|
private String description;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user