Copilot commented on code in PR #3656:
URL: https://github.com/apache/texera/pull/3656#discussion_r2272063941
##########
core/workflow-core/src/main/scala/edu/uci/ics/amber/core/tuple/Attribute.java:
##########
@@ -45,12 +46,14 @@ public Attribute(
this.attributeType = attributeType;
}
- @JsonProperty(value = "attributeName")
+ @JsonProperty(value = "attributeName", required = true)
+ @NotNull(message = "Attribute name is required")
public String getName() {
return attributeName;
}
- @JsonProperty(value = "attributeType")
+ @JsonProperty(value = "attributeType", required = true)
+ @NotNull(message = "Attribute name is required")
Review Comment:
The error message is incorrect. This annotation is on the getType() method
for attributeType, but the message says 'Attribute name is required'. It should
be 'Attribute type is required'.
```suggestion
@NotNull(message = "Attribute type is required")
```
--
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]