From 3d20ed264e0b2d06c8f64aa2a48eea45ba2db107 Mon Sep 17 00:00:00 2001 From: Mathias Vandaele Date: Tue, 24 Dec 2024 09:26:53 +0100 Subject: [PATCH] fix(aws-s3): small correction on s3 (#3825) --- .../aws-s3-outbound-connector.json | 2 +- .../aws-s3-outbound-connector-hybrid.json | 2 +- .../aws/s3/model/request/UploadObject.java | 2 + .../aws/aws-s3/src/main/resources/icon.svg | 47 ++++++------------- 4 files changed, 18 insertions(+), 35 deletions(-) diff --git a/connectors/aws/aws-s3/element-templates/aws-s3-outbound-connector.json b/connectors/aws/aws-s3/element-templates/aws-s3-outbound-connector.json index 3d72cb6a73..9778d88929 100644 --- a/connectors/aws/aws-s3/element-templates/aws-s3-outbound-connector.json +++ b/connectors/aws/aws-s3/element-templates/aws-s3-outbound-connector.json @@ -364,6 +364,6 @@ "type" : "String" } ], "icon" : { - "contents" : "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MjgiIGhlaWdodD0iNTEyIiB2aWV3Qm94PSIwIDAgNDI4IDUxMiI+CiAgPGRlZnM+CiAgICA8c3R5bGU+CiAgICAgIC5jbHMtMSB7CiAgICAgICAgZmlsbDogI2UyNTQ0NDsKICAgICAgfQoKICAgICAgLmNscy0xLCAuY2xzLTIsIC5jbHMtMyB7CiAgICAgICAgZmlsbC1ydWxlOiBldmVub2RkOwogICAgICB9CgogICAgICAuY2xzLTIgewogICAgICAgIGZpbGw6ICM3YjFkMTM7CiAgICAgIH0KCiAgICAgIC5jbHMtMyB7CiAgICAgICAgZmlsbDogIzU4MTUwZDsKICAgICAgfQogICAgPC9zdHlsZT4KICA8L2RlZnM+CiAgPHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMzc4LDk5TDI5NSwyNTdsODMsMTU4LDM0LTE5VjExOFoiLz4KICA8cGF0aCBjbGFzcz0iY2xzLTIiIGQ9Ik0zNzgsOTlMMjEyLDExOCwxMjcu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GlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03Ljk0NDczIDExLjY2NjZMNS42OTcyNyAxMS4xMDMxVjE0LjMyMzhMNy45NDQ3MyAxNS41VjExLjY2NjZaIiBmaWxsPSIjN0IxRDEzIi8+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTAuMTkxOCAxMS4xMDMxTDcuOTQ0MzQgMTEuNjY2OFYxNS41TDEwLjE5MTggMTQuMzIzOFYxMS4xMDMxWiIgZmlsbD0iI0UyNTQ0NCIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTcuOTQ0MzQgNi4xMzg5OEwxMC4xOTE4IDYuMzgzNDVWOS42NTk2M0w3Ljk0NDM0IDkuOTE2NzZWNi4xMzg5OFoiIGZpbGw9IiNFMjU0NDQiLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03LjkzNzUgMC41MDAwNjFMMTAuMTg3NSAxLjY4NzU2VjQuOTY4ODFMNy45Mzc1IDQuMzQzODFWMC41MDAwNjFaIiBmaWxsPSIjRTI1NDQ0Ii8+Cjwvc3ZnPgo=" } } \ No newline at end of file diff --git a/connectors/aws/aws-s3/element-templates/hybrid/aws-s3-outbound-connector-hybrid.json b/connectors/aws/aws-s3/element-templates/hybrid/aws-s3-outbound-connector-hybrid.json index b9c4b1c960..fb326e168e 100644 --- a/connectors/aws/aws-s3/element-templates/hybrid/aws-s3-outbound-connector-hybrid.json +++ b/connectors/aws/aws-s3/element-templates/hybrid/aws-s3-outbound-connector-hybrid.json @@ -369,6 +369,6 @@ "type" : "String" } ], "icon" : { - "contents" : "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MjgiIGhlaWdodD0iNTEy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9Ik03LjkzNzUgMC41MDAwNjFMMTAuMTg3NSAxLjY4NzU2VjQuOTY4ODFMNy45Mzc1IDQuMzQzODFWMC41MDAwNjFaIiBmaWxsPSIjRTI1NDQ0Ii8+Cjwvc3ZnPgo=" } } \ No newline at end of file diff --git a/connectors/aws/aws-s3/src/main/java/io/camunda/connector/aws/s3/model/request/UploadObject.java b/connectors/aws/aws-s3/src/main/java/io/camunda/connector/aws/s3/model/request/UploadObject.java index 9023328b1c..cc9f65de30 100644 --- a/connectors/aws/aws-s3/src/main/java/io/camunda/connector/aws/s3/model/request/UploadObject.java +++ b/connectors/aws/aws-s3/src/main/java/io/camunda/connector/aws/s3/model/request/UploadObject.java @@ -11,6 +11,7 @@ import io.camunda.connector.generator.java.annotation.TemplateSubType; import io.camunda.document.Document; import jakarta.validation.constraints.NotBlank; +import jakarta.validation.constraints.NotNull; @TemplateSubType(id = "uploadObject", label = "Upload object") public record UploadObject( @@ -41,5 +42,6 @@ public record UploadObject( type = TemplateProperty.PropertyType.String, feel = Property.FeelMode.required, binding = @TemplateProperty.PropertyBinding(name = "action.document")) + @NotNull Document document) implements S3Action {} diff --git a/connectors/aws/aws-s3/src/main/resources/icon.svg b/connectors/aws/aws-s3/src/main/resources/icon.svg index 3f63be51fa..24c9d8cde4 100644 --- a/connectors/aws/aws-s3/src/main/resources/icon.svg +++ b/connectors/aws/aws-s3/src/main/resources/icon.svg @@ -1,34 +1,15 @@ - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + +