forked from loafle/openapi-generator-original
Formatting fix.
This commit is contained in:
parent
30b7eb7854
commit
e1df89c8fa
@ -156,13 +156,11 @@ namespace {{packageName}}.{{packageContext}}.Models
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void Validate()
|
private void Validate()
|
||||||
{
|
{ {{#vars}}{{#required}}
|
||||||
{{#vars}}{{#required}}
|
|
||||||
if (_{{name}} == null)
|
if (_{{name}} == null)
|
||||||
{
|
{
|
||||||
throw new ArgumentException("{{name}} is a required property for {{classname}} and cannot be null");
|
throw new ArgumentException("{{name}} is a required property for {{classname}} and cannot be null");
|
||||||
}
|
} {{/required}}{{/vars}}
|
||||||
{{/required}}{{/vars}}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user