Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,13 @@ public String getTypeDeclaration(Schema p) {
return getSchemaType(p) + "[str, " + getCollectionItemTypeDeclaration(inner) + "]";
}

String openAPIType = getSchemaType(p);
String openAPIType = super.getSchemaType(p);

if (openAPIType == null) {
LOGGER.error("OpenAPI Type for {} is null. Default to UNKNOWN_OPENAPI_TYPE instead.", p.getName());
openAPIType = "UNKNOWN_OPENAPI_TYPE";
}

if (typeMapping.containsKey(openAPIType)) {
return typeMapping.get(openAPIType);
}
Expand Down
Loading