From cc4ee38338dcf7cf1cf0b49c0ac6d46c7d3724d3 Mon Sep 17 00:00:00 2001 From: fooinha Date: Fri, 20 Jan 2017 21:48:01 +0000 Subject: [PATCH] * fix NPE for response headers with relative definitions --- .../swagger2markup/internal/component/ResponseComponent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();