lib/nexmo/oas/renderer/views/open_api/_endpoint.erb in nexmo-oas-renderer-2.0.1 vs lib/nexmo/oas/renderer/views/open_api/_endpoint.erb in nexmo-oas-renderer-2.1.0

- old
+ new

@@ -8,10 +8,10 @@ <% servers = endpoint.path.servers ? endpoint.path.servers : endpoint.definition.servers %> <% raise "`servers` parameter not provided at either the path level or document root" unless servers.size.positive? %> <% - path = endpoint.path.path.gsub(/\{(.+?)\}/, ':\1') + path = endpoint.path.path.gsub(/\{(.+?)\}/, ':\1').chomp("/") uri = URI("#{servers[0]['url']}#{path}") %> <div class="oas-path-full Vlt-badge-combined"> <code class="Vlt-badge Vlt-badge--large Nxd-method-badge Nxd-method-badge--<%= endpoint.method %>"><%= endpoint.method.upcase %></code> <code class="Vlt-badge Vlt-badge--large Vlt-bg-grey-lighter Vlt-black">