:fix: constructor error messages

This commit is contained in:
Lorenzo Caenazzo
2024-06-28 11:28:03 +02:00
committed by Christian Tzolov
parent 9f56a91657
commit 0f07b7bb8a

View File

@@ -92,8 +92,8 @@ public class Document implements Content {
}
public Document(String id, String content, List<Media> media, Map<String, Object> metadata) {
Assert.hasText(id, "id must not be null");
Assert.hasText(content, "content must not be null");
Assert.hasText(id, "id must not be null or empty");
Assert.hasText(content, "content must not be null or empty");
Assert.notNull(metadata, "metadata must not be null");
this.id = id;