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 Jun 23, 2023
1 parent 26809a5 commit 1240630
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 1240630

Please sign in to comment.