Skip to content

Commit

Permalink
Adding deprecated support
Browse files Browse the repository at this point in the history
  • Loading branch information
slorello89 committed Nov 5, 2020
1 parent c4bd868 commit 871fd76
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/nexmo/oas/renderer/views/open_api/_parameters.erb
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@
<% if parameter.maximum || parameter.raw['maxLength'] %>
| <span class="constraint">Max:</span> <%= parameter.maximum || parameter.raw['maxLength'] %>
<% end %>
<% if parameter.raw['deprecated'] %>
| <span class="constraint">DEPRECATED</span> <span>: This field has been deprecated. </span>
<% end %>
<% if parameter.raw['x-replace-with']%>
<span> <%= 'Please use ' + '<code>'+ parameter.raw['x-replace-with'] + '</code>' + ' instead.' %> </span>
<% end %>
</div>

<%= (parameter.description || parameter.schema['description'] || '').render_markdown %>
Expand Down

0 comments on commit 871fd76

Please sign in to comment.