Skip to content

Commit

Permalink
Change fixed valued fields from optional to required
Browse files Browse the repository at this point in the history
  • Loading branch information
AnjanaSenanayake committed Dec 5, 2023
1 parent 73205c4 commit 72dcffe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public void setFixedValue(List<String> fixedValue) {
}

public boolean isRequired() {
return this.min > 0;
return this.min > 0 || this.hasFixedValue();
}

public String getPath() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ public String resolveSpecialCharacters(String specialChar) {
return specialChar.replaceAll(Pattern.quote("[x]"), "")
.replaceAll(Pattern.quote("/"), "")
.replaceAll("-", "_")
.replaceAll("\\s+", "_");
.replaceAll("\\s+", "");
}

/**
Expand Down

0 comments on commit 72dcffe

Please sign in to comment.