From 81edab38f3b76ebe7df60bfe8e17cc6018806b9c Mon Sep 17 00:00:00 2001 From: Robert Winkler Date: Tue, 3 Jan 2017 15:58:43 +0100 Subject: [PATCH] The notBlank validation of the type should tell which parameter is not valid. --- .../java/io/github/swagger2markup/internal/type/BasicType.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/github/swagger2markup/internal/type/BasicType.java b/src/main/java/io/github/swagger2markup/internal/type/BasicType.java index bbd5454d..d2753ae0 100644 --- a/src/main/java/io/github/swagger2markup/internal/type/BasicType.java +++ b/src/main/java/io/github/swagger2markup/internal/type/BasicType.java @@ -38,7 +38,7 @@ public BasicType(String type, String name) { public BasicType(String type, String name, String format) { super(name); - Validate.notBlank(type); + Validate.notBlank(type, "Type of parameter '%s' must not be blank", name); this.type = type; this.format = format; }