Skip to content

Commit

Permalink
* fix NPE for response headers with relative definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
Paulo Pacheco authored and Paulo Pacheco committed Jan 20, 2017
1 parent 81edab3 commit a0300b4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<Object> optionalDefaultValue = headerPropertyAdapter.getDefaultValue();

Expand Down

0 comments on commit a0300b4

Please sign in to comment.