Skip to content

Commit 7c3ed54

Browse files
committed
check style property is not null in schema
1 parent 7c9cac3 commit 7c3ed54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/swagger/codegen/v3/generators/DefaultCodegenConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2215,7 +2215,7 @@ public CodegenOperation fromOperation(String path, String httpMethod, Operation
22152215
param = getParameterFromRef(param.get$ref(), openAPI);
22162216
}
22172217
if ((param instanceof QueryParameter || "query".equalsIgnoreCase(param.getIn()))
2218-
&& param.getStyle().equals(Parameter.StyleEnum.DEEPOBJECT)) {
2218+
&& param.getStyle() != null && param.getStyle().equals(Parameter.StyleEnum.DEEPOBJECT)) {
22192219
operationParameters.parseNestedObjects(param.getName(), param.getSchema(), imports, this, openAPI);
22202220
continue;
22212221
}

0 commit comments

Comments
 (0)