lib/service_contract/avro/views/protocol.slim in service_contract-0.3.0 vs lib/service_contract/avro/views/protocol.slim in service_contract-0.4.0
- old
+ new
@@ -23,16 +23,16 @@
h4 Parameters
ul
- endpoint.parameters.each do |parameter|
li
- => parameter.type
+ => parameter.type.name
= parameter.name
h4 Response
p
- = endpoint.response_type
+ = endpoint.response_type.name
.col-md-4
h2 Types
.panel-group#types
@@ -42,15 +42,18 @@
h4.panel-title
a data-toggle="collapse" href="#collapse#{type.name}"
= type.name
.panel-collapse.collapse.in id="collapse#{type.name}"
.panel-body
+ - type.valid_values.each do |value|
+ p = value
- type.fields.each do |field|
p
- a.pull-right data-toggle="collapse" href="#collapseDescription#{type.name}#{field.name}"
+ - if field.doc
+ a.pull-right data-toggle="collapse" href="#collapseDescription#{type.name}#{field.name}"
i.glyphicon.glyphicon-info-sign
- => field.type
+ => field.type.name
| -
=< field.name
- if field.doc
p.collapse id="collapseDescription#{type.name}#{field.name}"
- em = field.doc
\ No newline at end of file
+ em = field.doc