Fixed operation parameter input enums generation.

This commit is contained in:
Marcin Stefaniuk 2016-05-20 15:29:53 +02:00
parent eaddc18537
commit f4c3b9ec9f
4 changed files with 3 additions and 3 deletions

View File

@ -7,8 +7,7 @@ using {{packageName}}.Model;
namespace {{packageName}}.Module
{ {{#operations}}
{{#operation}}{{#allParams}}{{#isEnum}}{{>innerEnum}}
{{/isEnum}}{{/allParams}}{{/operation}}
{{#operation}}{{#allParams}}{{#isEnum}}{{>innerApiEnum}}{{/isEnum}}{{/allParams}}{{/operation}}
public sealed class {{classname}}Module : NancyModule
{

View File

@ -0,0 +1 @@
public enum {{#datatypeWithEnum}}{{.}}{{/datatypeWithEnum}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}} { {{#allowableValues}}{{#values}}{{&.}}{{^-last}}, {{/-last}}{{/values}}{{/allowableValues}} };

View File

@ -10,7 +10,7 @@ namespace {{packageName}}.Model
{
public sealed class {{classname}}: {{#parent}}{{{parent}}}, {{/parent}} IEquatable<{{classname}}>
{ {{#vars}}{{#isEnum}}
{{>innerEnum}}{{/isEnum}}{{#items.isEnum}}
{{>innerModelEnum}}{{/isEnum}}{{#items.isEnum}}
{{#items}}{{>innerEnum}}{{/items}}{{/items.isEnum}}{{/vars}}{{#vars}}
public {{>nullableDataType}} {{name}} { get; private set; }{{/vars}}