Skip to content

Commit

Permalink
Update bridge app codegen to handle Optional<> (#26229)
Browse files Browse the repository at this point in the history
  • Loading branch information
achaulk-goog authored and pull[bot] committed Aug 21, 2023
1 parent d3f6925 commit 2323026
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def get_field_type(definition: Field, cluster: Cluster, idl: Idl):
cType = 'std::vector<{}>'.format(cType)
if definition.is_nullable:
cType = '::chip::app::DataModel::Nullable<{}>'.format(cType)
if definition.is_nullable:
if definition.is_optional:
cType = '::chip::Optional<{}>'.format(cType)
return cType

Expand Down

0 comments on commit 2323026

Please sign in to comment.