@@ -88,7 +88,7 @@ func (p IdlRenderer) Process(cxt context.Context, input *pipeline.Data[*zap.File
8888 clusters := make (map [* matter.Cluster ]* ClusterInfo )
8989
9090 for _ , endpoint := range input .Content .Endpoints {
91- if endpoint .EndpointTypeIndex > len (input .Content .EndpointTypes )- 1 {
91+ if endpoint .EndpointTypeIndex < 0 || endpoint . EndpointTypeIndex >= len (input .Content .EndpointTypes ) {
9292 continue
9393 }
9494 endpointType := input .Content .EndpointTypes [endpoint .EndpointTypeIndex ]
@@ -120,6 +120,9 @@ func (p IdlRenderer) Process(cxt context.Context, input *pipeline.Data[*zap.File
120120 clusterList := make ([]* ClusterInfo , 0 , len (clusters ))
121121 clusterEntities := make (map [* matter.Cluster ]map [types.Entity ]struct {})
122122 globalEntities := make (map [types.Entity ]bool )
123+ for entity := range p .spec .GlobalObjects {
124+ globalEntities [entity ] = false
125+ }
123126 for cluster , ci := range clusters {
124127 clusterList = append (clusterList , ci )
125128 clusterEntities [cluster ] = make (map [types.Entity ]struct {})
@@ -196,7 +199,7 @@ func (p IdlRenderer) Process(cxt context.Context, input *pipeline.Data[*zap.File
196199 en .Name = fieldName + "Tag"
197200 en .Type = types .NewDataType (types .BaseDataTypeEnum8 , types .DataTypeRankScalar )
198201 for _ , tag := range ns .SemanticTags {
199- nst := matter .NewEnumValue (tag .Source (), ns )
202+ nst := matter .NewEnumValue (tag .Source (), en )
200203 nst .Name = tag .Name
201204 nst .Value = tag .ID
202205 en .Values = append (en .Values , nst )
0 commit comments