mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-03 06:00:52 +00:00
Fix of model builder validation method.
This commit is contained in:
parent
f5f5a359e0
commit
be44df44a5
@ -108,7 +108,7 @@ namespace {{packageName}}.Models
|
||||
private void Validate()
|
||||
{
|
||||
{{#vars}}{{#required}}
|
||||
if ({{_name}} == null)
|
||||
if (_{{name}} == null)
|
||||
{
|
||||
throw new ArgumentException("{{name}} is a required property for {{classname}} and cannot be null");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user