You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Handling struct items properly when we have a global and cluster specific struct with the same name (#1557)
- Fixed the zcl_struct_items_by_struct_and_cluster_name helper for this global vs cluster specific struct items
- Added tests for it
- Github: ZAP#1551
Copy file name to clipboardExpand all lines: docs/sdk-integration.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,7 +82,7 @@ The `templates` key contained in the `gen-templates.json` file above, is an arra
82
82
83
83
The _replacement pattern_ inside the output key, comes handy when iterator key is used and defines how each generated file will be named. Replacement patterns are in a format of `{key}` or `{key:modifier}`. The `key` can be any usual key that the iterated object provides. For example, if you iterate over cluster, these can be `code`, `name`, `description`, `define` and all the usual keys that a cluster supports. So if your output contains `{code}` then this pattern will be replaced by the actual cluster code.
84
84
85
-
The modifier can be one of the following: `hexuppercase`, `hexlowercase`, `tolowercase`, `touppercase`, `tocamelcase`, `tosnakecase`aor`tosnakecaseallcaps`.
85
+
The modifier can be one of the following: `hexuppercase`, `hexlowercase`, `tolowercase`, `touppercase`, `tocamelcase`, `tosnakecase`or`tosnakecaseallcaps`.
//STRUCT_COUNT counts the structs where there could be one global and one cluster specific with same name.
98
99
returndbApi
99
100
.dbGet(
100
101
db,
@@ -105,6 +106,7 @@ SELECT
105
106
STRUCT.API_MATURITY,
106
107
DATA_TYPE.NAME,
107
108
(SELECT COUNT(1) FROM DATA_TYPE_CLUSTER WHERE DATA_TYPE_CLUSTER.DATA_TYPE_REF = STRUCT.STRUCT_ID) AS STRUCT_CLUSTER_COUNT,
109
+
(SELECT COUNT(1) FROM STRUCT INNER JOIN DATA_TYPE ON STRUCT.STRUCT_ID = DATA_TYPE.DATA_TYPE_ID WHERE DATA_TYPE.NAME = "${name}" AND PACKAGE_REF IN (${dbApi.toInClause(packageIds)})) AS STRUCT_COUNT,
0 commit comments