Skip to content

Commit

Permalink
Add TODOs for SHA validation
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvinqian00 committed Dec 11, 2024
1 parent e3a2405 commit 5d001c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public abstract class AbstractActor extends AbstractObject {

//IFI
private URI mbox;
// TODO: Validate that mbox_sha1sum is a SHA1, 40-char hex string
private String mbox_sha1sum;
private URI openid;
private Account account;
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/yetanalytics/xapi/model/Attachment.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public class Attachment {
@JsonSerialize(using = ToStringSerializer.class)
private MimeType contentType;
private Integer length;
// TODO: Validate that sha2 is a SHA256, 64-char hex string
private String sha2;
private URI fileUrl;

Expand Down

0 comments on commit 5d001c8

Please sign in to comment.