mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 11:23:58 +00:00
Merge branch 'nancyfx-codegen' of https://github.com/FinderSystems/swagger-codegen into nancyfx-codegen
This commit is contained in:
commit
dbc6c2f163
@ -158,13 +158,11 @@ namespace {{packageName}}.{{packageContext}}.Models
|
||||
}
|
||||
|
||||
private void Validate()
|
||||
{
|
||||
{{#vars}}{{#required}}
|
||||
{ {{#vars}}{{#required}}
|
||||
if (_{{name}} == null)
|
||||
{
|
||||
throw new ArgumentException("{{name}} is a required property for {{classname}} and cannot be null");
|
||||
}
|
||||
{{/required}}{{/vars}}
|
||||
} {{/required}}{{/vars}}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user