Skip to content

Commit

Permalink
Fix validate
Browse files Browse the repository at this point in the history
  • Loading branch information
mikir committed Nov 25, 2024
1 parent 93f0d43 commit fe7ccd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extension/freemarker/Structure.cpp.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ void validate(const View<${fullName}>&<#if fieldList?has_content || parameterLis
<#if field.optional??>
<#if field.optional.viewIndirectClause??>
// check non-auto optional
if (${field.optional.viewIndirectClause} && !view.${field.getterName}())
if ((${field.optional.viewIndirectClause}) && !view.${field.getterName}())
{
throw MissedOptionalException("Optional field '${name}.${field.name}' is used but not set!");
}
Expand Down

0 comments on commit fe7ccd9

Please sign in to comment.