lib/nexmo/oas/renderer/views/open_api/_endpoint.erb in nexmo-oas-renderer-0.2.1 vs lib/nexmo/oas/renderer/views/open_api/_endpoint.erb in nexmo-oas-renderer-0.2.2

- old
+ new

@@ -139,14 +139,15 @@ <% schema = response.schema(format) %> <%= Nexmo::OAS::Renderer::ResponseParserDecorator.new(schema).html(format, xml_options: schema['xml']) %> <% end %> </div> <% end %> - </div> <% if response.code == '204' || response.formats.empty? %> - <pre class="highlight"><code>No content</code></pre> + <% content = response.description ? response.description : 'No content' %> + <pre class="highlight"><code><%= content %></code></pre> <% end %> + </div> </div> <% end %> </div> </div>