Skip to content

Commit b469038

Browse files
committed
Add TODO for if_is_struct
1 parent 6bef481 commit b469038

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/controller/java/templates/partials/decode_value.zapt

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ if (dataResponse.{{asLowerCamelCase label}}.Value().IsNull()) {
1212
{{~#*inline "item"}}dataResponse.{{asLowerCamelCase name}}{{#if isOptional}}.Value(){{/if}}{{#if isNullable}}.Value(){{/if}}{{/inline}}
1313
{{#if isArray}}
1414
{{asSymbol label}} = nullptr; /* Array - Conversion from this type to Java is not properly implemented yet */
15+
{{! TODO: Use if_is_struct, which works better for nested types. Currently can't because inline partials aren't found in its else block. }}
1516
{{else if isStruct}}
1617
{{asSymbol label}} = nullptr; /* Struct - conversion from this type to Java is not properly implemented yet */
1718
{{else if (isOctetString type)}}

src/controller/java/templates/partials/encode_value.zapt

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ chip::JniReferences::GetInstance().GetOptionalValue({{source}}, {{source}});
1111
{{#if isArray}}
1212
{{! TODO: Support array types. }}
1313
{{else if isStruct}}
14+
{{! TODO: Use if_is_struct, which works better for nested types. Currently can't because inline partials aren't found in its else block. }}
1415
{{! TODO: Support struct types. }}
1516
{{else if (isOctetString type)}}
1617
chip::ByteSpan {{source}}Value;

0 commit comments

Comments
 (0)