Merge branch 'nancyfx-codegen' of https://github.com/FinderSystems/swagger-codegen into nancyfx-codegen

This commit is contained in:
Jakub Malek 2016-06-01 15:04:41 +02:00
commit dbc6c2f163

View File

@ -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}}
}
}
}