nexmo-oas-renderer 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 96566dc3b7c32b1faaf58490da59a44cd5d84bf7d31bc2e96c63fa83bbb0e2b2
4
- data.tar.gz: 54c7eec75b23ce13faf82a4ef6f04d1166bbbba744334f947eab3f627d785071
3
+ metadata.gz: 57cfe1aefc0744e83e6882d343686cac3d2158b820e8463e95235d7f90da1de3
4
+ data.tar.gz: 514e4c4cf32d7165d6ef3f46cafc036842f36c516e53456ba8ee61d1c355a1cf
5
5
  SHA512:
6
- metadata.gz: a354aee9de2e810dd12b667af8c91d1ee44e6d4f95369c4f653fe3eb03329c215e29db6123b7746238dc51ebae9dd2206614331c2a110dcc6094e4a22b417afb
7
- data.tar.gz: 5d045bc34c210e9989b94a744962f58b1d1d93ed91c29d3b2f6c167407fdd1f375f3ecf3708ac8f17a2f38e8548bde094770e1e5b7adf092b18881a83745da39
6
+ metadata.gz: a87895220bc084d7753ba7d3435eef080aead4acd96a7d9d128b67ca3a11a92cff1ccd9c38d139c5237ca9a18a1fb41db92ab9f078f380f28a60bbfc611cc77c
7
+ data.tar.gz: cfb82652ef1437adda581c0e64ecce9a85df1519b65a002356483cc5ab2655b597f98c38c7f6020ed8f92e1d9b54ce01510e1b4991580812954c4b5502a27427
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nexmo-oas-renderer (0.5.0)
4
+ nexmo-oas-renderer (0.5.1)
5
5
  activemodel (~> 5.2)
6
6
  activesupport (~> 5.2)
7
7
  banzai (~> 0.1.2)
@@ -1,7 +1,7 @@
1
1
  module Nexmo
2
2
  module OAS
3
3
  module Renderer
4
- VERSION = "0.5.0"
4
+ VERSION = "0.5.1"
5
5
  end
6
6
  end
7
7
  end
@@ -17,6 +17,15 @@
17
17
 
18
18
  <% if endpoint.request_body %>
19
19
  <% format = endpoint.request_body.formats[0] %>
20
+ <h4>
21
+ Request body
22
+ <span class="Vlt-badge Vlt-badge--blue"><%= format %></span>
23
+ </h4>
24
+
25
+ <% if endpoint.request_body.description %>
26
+ <%= endpoint.request_body.description.render_markdown %>
27
+ <% end %>
28
+
20
29
  <% unless endpoint.request_body.exhibits_one_of_multiple_schemas?(format) %>
21
30
 
22
31
  <%
@@ -34,11 +43,6 @@
34
43
  if params
35
44
  %>
36
45
 
37
- <h4>
38
- Request body
39
- <span class="Vlt-badge Vlt-badge--blue"><%= format %></span>
40
- </h4>
41
-
42
46
  <%= erb :'open_api/_parameters', locals: { parameters: params, callback: callback } %>
43
47
  <% end %>
44
48
  <% else %>
@@ -75,10 +79,6 @@
75
79
  <div class="Vlt-tabs__content">
76
80
  <% panels.each do |panel| %>
77
81
  <div class="Vlt-tabs__panel <%= panel['active'] ? 'Vlt-tabs__panel_active' : '' %>">
78
- <h4>
79
- <%= panel['description'] %>
80
- <span class="Vlt-badge Vlt-badge--blue"><%= format %></span>
81
- </h4>
82
82
  <%= erb :'open_api/_parameters', locals: { parameters: panel['parameters'], callback: callback } %>
83
83
  </div>
84
84
  <% end %>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nexmo-oas-renderer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fabian Rodriguez
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-06 00:00:00.000000000 Z
11
+ date: 2019-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra