mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 11:23:58 +00:00
Fixed operation parameter input enums generation.
This commit is contained in:
parent
eaddc18537
commit
f4c3b9ec9f
@ -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
|
||||
{
|
||||
|
@ -0,0 +1 @@
|
||||
public enum {{#datatypeWithEnum}}{{.}}{{/datatypeWithEnum}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}} { {{#allowableValues}}{{#values}}{{&.}}{{^-last}}, {{/-last}}{{/values}}{{/allowableValues}} };
|
@ -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}}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user