mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 11:23:58 +00:00
Enums have been added to result file
This commit is contained in:
parent
860b551e9b
commit
3dd0b04fb9
@ -154,6 +154,10 @@
|
||||
<h3 class="field-label"><a name="{{classname}}">{{classname}}</a> <a class="up" href="#__Models">Up</a></h3>
|
||||
<div class="field-items">
|
||||
{{#vars}}<div class="param">{{name}} {{#isNotRequired}}(optional){{/isNotRequired}}</div><div class="param-desc"><span class="param-type">{{datatype}}</span> {{description}}</div>
|
||||
{{#isEnum}}
|
||||
<div class="param-enum-header">Enum:</div>
|
||||
{{#_enum}}<div class="param-enum">{{this}}</div>{{/_enum}}
|
||||
{{/isEnum}}
|
||||
{{/vars}}
|
||||
</div> <!-- field-items -->
|
||||
</div>
|
||||
|
@ -124,6 +124,20 @@ code {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.param-enum-header {
|
||||
width: 700px;
|
||||
padding: 0 0 0 60px;
|
||||
color: #777;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.param-enum {
|
||||
width: 700px;
|
||||
padding: 0 0 0 80px;
|
||||
color: #777;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.field-label {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
|
@ -100,6 +100,10 @@
|
||||
float: left;
|
||||
}
|
||||
|
||||
.param-enum {
|
||||
margin-left: 20px;
|
||||
}
|
||||
|
||||
.section-header {
|
||||
border-bottom: 2px;
|
||||
font-weight: bold;
|
||||
|
@ -5,7 +5,16 @@
|
||||
{{#vars}}
|
||||
<ul class="parameter">
|
||||
<li class="param-required-{{required}}">{{name}} : {{datatype}}
|
||||
<br/>{{description}}
|
||||
<br/>{{description}}
|
||||
{{#isEnum}}
|
||||
<dl class="param-enum">
|
||||
<dt>Enum:
|
||||
{{#_enum}}
|
||||
<dd>{{this}}</dd>
|
||||
{{/_enum}}
|
||||
</dt>
|
||||
</dl>
|
||||
{{/isEnum}}
|
||||
</li>
|
||||
</ul>
|
||||
{{/vars}}
|
||||
|
Loading…
Reference in New Issue
Block a user