Skip to content

Commit 35f0721

Browse files
committed
added null check per #16
1 parent e9676cc commit 35f0721

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/swagger-compat-spec-parser/src/main/java/io/swagger/parser/SwaggerCompatConverter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,8 @@ else if(ParamType.FORM.equals(param.getParamType())) {
180180

181181
output.setName(param.getName());
182182
output.setDescription(param.getDescription());
183-
output.setRequired(param.getRequired());
183+
if(param.getRequired() != null)
184+
output.setRequired(param.getRequired());
184185

185186
Property property = null;
186187
String type = param.getType() == null ? null : param.getType().toString();

0 commit comments

Comments
 (0)