Skip to content

Commit 81edab3

Browse files
author
Robert Winkler
committed
The notBlank validation of the type should tell which parameter is not valid.
1 parent 039607a commit 81edab3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/github/swagger2markup/internal/type/BasicType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public BasicType(String type, String name) {
3838

3939
public BasicType(String type, String name, String format) {
4040
super(name);
41-
Validate.notBlank(type);
41+
Validate.notBlank(type, "Type of parameter '%s' must not be blank", name);
4242
this.type = type;
4343
this.format = format;
4444
}

0 commit comments

Comments
 (0)