jerryshao commented on code in PR #8173:
URL: https://github.com/apache/gravitino/pull/8173#discussion_r2286941184


##########
common/src/main/java/org/apache/gravitino/dto/requests/ModelVersionLinkRequest.java:
##########
@@ -63,5 +92,15 @@ public void validate() throws IllegalArgumentException {
             !NumberUtils.isCreatable(alias), "alias must not be a number or a 
number string");
       }
     }
+
+    if (uris == null || uris.isEmpty()) {
+      Preconditions.checkArgument(StringUtils.isNotBlank(uri), "URI cannot be 
empty");

Review Comment:
   Can you please add more description about this check, for example, "uri 
field cannot be empty if uris field is null or empty".



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to