Skip to content

Commit

Permalink
fix(lifecycle): Filter.Prefix is not a required field (#222)
Browse files Browse the repository at this point in the history
if null is provided, server-side will treat it as empty string.
  • Loading branch information
owarai authored Jul 27, 2023
1 parent 505114a commit 41e98fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion specs/qingstor
6 changes: 2 additions & 4 deletions src/main/java/com/qingstor/sdk/service/Types.java
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ public String validateParam() {
/** FilterModel represents Filter. */
public static class FilterModel extends RequestInputModel {

/** Prefix matching Required */
/** Prefix matching */
private String prefix;

public void setPrefix(String prefix) {
Expand All @@ -660,9 +660,7 @@ public String getPrefix() {
/** validateParam validates the Filter. */
@Override
public String validateParam() {
if (QSStringUtil.isEmpty(this.getPrefix())) {
return QSStringUtil.getParameterRequired("Prefix", "Filter");
}

return null;
}
}
Expand Down

0 comments on commit 41e98fe

Please sign in to comment.