diff --git a/src/main/java/io/github/swagger2markup/internal/component/ResponseComponent.java b/src/main/java/io/github/swagger2markup/internal/component/ResponseComponent.java index b2f4e2d3..7c72500f 100644 --- a/src/main/java/io/github/swagger2markup/internal/component/ResponseComponent.java +++ b/src/main/java/io/github/swagger2markup/internal/component/ResponseComponent.java @@ -103,7 +103,7 @@ public MarkupDocBuilder apply(MarkupDocBuilder markupDocBuilder, Parameters para descriptionBuilder.newLine(true); Property headerProperty = header.getValue(); PropertyAdapter headerPropertyAdapter = new PropertyAdapter(headerProperty); - Type propertyType = headerPropertyAdapter.getType(null); + Type propertyType = headerPropertyAdapter.getType(definitionDocumentResolver); String headerDescription = markupDescription(config.getSwaggerMarkupLanguage(), markupDocBuilder, headerProperty.getDescription()); Optional optionalDefaultValue = headerPropertyAdapter.getDefaultValue();