From 5f69c28d4389a5dc913ae2c682f81017e7e54d91 Mon Sep 17 00:00:00 2001 From: Yaroslav Serhieiev Date: Fri, 1 Aug 2025 20:23:14 +0300 Subject: [PATCH] feat(allure-model): add optional attachment size --- .../io/qameta/allure/model/Attachment.java | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/allure-model/src/main/java/io/qameta/allure/model/Attachment.java b/allure-model/src/main/java/io/qameta/allure/model/Attachment.java index dc5b36e7..ef938f24 100644 --- a/allure-model/src/main/java/io/qameta/allure/model/Attachment.java +++ b/allure-model/src/main/java/io/qameta/allure/model/Attachment.java @@ -32,6 +32,7 @@ public class Attachment implements Serializable { private String name; private String source; private String type; + private Long size; /** * Gets name. @@ -93,4 +94,24 @@ public Attachment setType(final String value) { return this; } + /** + * Gets size. + * + * @return the size + */ + public Long getSize() { + return size; + } + + /** + * Sets size. + * + * @param value the value + * @return self for method chaining + */ + public Attachment setSize(final Long value) { + this.size = value; + return this; + } + }