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 Jul 20, 2023
1 parent 07151f2 commit 1214514
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 1214514

Please sign in to comment.