-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Update field validation on SOAP request types * style: simplify field validation error messages * style: update error format
- Loading branch information
Showing
11 changed files
with
24 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
package gateway.soap.request; | ||
|
||
import jakarta.validation.constraints.NotEmpty; | ||
import jakarta.validation.constraints.NotNull; | ||
|
||
public class ReqAccPassword extends Authorization | ||
{ | ||
@NotNull public String oldpassword; | ||
@NotNull public String newpassword; | ||
@NotEmpty public String newpassword; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
package gateway.soap.request; | ||
|
||
import jakarta.validation.constraints.NotNull; | ||
import java.util.UUID; | ||
|
||
public class ReqFileDelete extends Authorization | ||
{ | ||
public UUID[] fileUUID; // 1+ | ||
@NotNull public UUID[] fileUUID; // 1+ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
package gateway.soap.request; | ||
|
||
import jakarta.validation.constraints.NotNull; | ||
import java.util.UUID; | ||
|
||
public class ReqFileMove extends Authorization | ||
{ | ||
public UUID fileUUID; | ||
@NotNull public UUID fileUUID; | ||
public UUID targetDirectoryUUID; // always a directory | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
package gateway.soap.request; | ||
|
||
import jakarta.validation.constraints.NotNull; | ||
import jakarta.validation.constraints.NotEmpty; | ||
import java.util.UUID; | ||
|
||
public class ReqFileNewDir extends Authorization | ||
{ | ||
@NotNull public String directoryName; | ||
@NotEmpty public String directoryName; | ||
public UUID location; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
package gateway.soap.request; | ||
|
||
import jakarta.validation.constraints.NotEmpty; | ||
import jakarta.validation.constraints.NotNull; | ||
import java.util.UUID; | ||
|
||
public class ReqFileRename extends Authorization | ||
{ | ||
@NotNull public UUID fileUUID; | ||
@NotNull public String newName; | ||
@NotEmpty public String newName; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
package gateway.soap.request; | ||
|
||
import jakarta.validation.constraints.NotEmpty; | ||
import jakarta.validation.constraints.NotNull; | ||
import java.util.UUID; | ||
|
||
public class ReqFileUpload extends Authorization | ||
{ | ||
@NotNull public String fileName; | ||
|
||
@NotEmpty public String fileName; | ||
@NotNull public byte[] fileContent; | ||
|
||
public UUID location; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
package gateway.soap.request; | ||
|
||
import jakarta.validation.constraints.NotEmpty; | ||
import jakarta.validation.constraints.NotNull; | ||
import java.util.UUID; | ||
|
||
public class ReqShareFile extends Authorization | ||
{ | ||
@NotNull public UUID fileUUID; | ||
@NotNull public String otherUsername; | ||
@NotEmpty public String otherUsername; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
package gateway.soap.request; | ||
|
||
import jakarta.validation.constraints.NotEmpty; | ||
import jakarta.validation.constraints.NotNull; | ||
import java.util.UUID; | ||
|
||
public class ReqShareRemove | ||
{ | ||
public UUID fileUUID; | ||
public String otherUsername; | ||
@NotNull public UUID fileUUID; | ||
@NotEmpty public String otherUsername; | ||
} |