@@ -502,7 +502,7 @@ function prepareCluster(cluster, context, isExtension = false) {
502502 }
503503 ret . introducedIn = cluster . $ . introducedIn
504504 ret . removedIn = cluster . $ . removedIn
505- ret . apiMaturity = cluster . $ . apiMaturity
505+ ret . apiMaturity = conformParser . getApiMaturityFromXML ( cluster )
506506 }
507507 }
508508
@@ -536,7 +536,7 @@ function prepareCluster(cluster, context, isExtension = false) {
536536 command . $ . disableDefaultResponse == 'true' ? false : true ,
537537 isFabricScoped : command . $ . isFabricScoped == 'true' ,
538538 isLargeMessage : quality ? quality . largeMessage == 'true' : false ,
539- apiMaturity : command . $ . apiMaturity
539+ apiMaturity : conformParser . getApiMaturityFromXML ( command )
540540 }
541541 cmd . access = extractAccessIntoArray ( command )
542542 if ( cmd . manufacturerCode == null ) {
@@ -571,7 +571,7 @@ function prepareCluster(cluster, context, isExtension = false) {
571571 fieldIdentifier : lastFieldId ,
572572 introducedIn : arg . $ . introducedIn ,
573573 removedIn : arg . $ . removedIn ,
574- apiMaturity : arg . $ . apiMaturity
574+ apiMaturity : conformParser . getApiMaturityFromXML ( arg )
575575 } )
576576 } )
577577 }
@@ -588,7 +588,7 @@ function prepareCluster(cluster, context, isExtension = false) {
588588 side : event . $ . side ,
589589 conformance : conformParser . parseConformanceFromXML ( event ) ,
590590 priority : event . $ . priority ,
591- apiMaturity : event . $ . apiMaturity ,
591+ apiMaturity : conformParser . getApiMaturityFromXML ( event ) ,
592592 description : event . description ? event . description [ 0 ] . trim ( ) : '' ,
593593 isOptional : conformParser . getOptionalAttributeFromXML ( event , 'event' ) ,
594594 isFabricSensitive : event . $ . isFabricSensitive == 'true'
@@ -617,7 +617,7 @@ function prepareCluster(cluster, context, isExtension = false) {
617617 fieldIdentifier : lastFieldId ,
618618 introducedIn : field . $ . introducedIn ,
619619 removedIn : field . $ . removedIn ,
620- apiMaturity : field . $ . apiMaturity
620+ apiMaturity : conformParser . getApiMaturityFromXML ( field )
621621 } )
622622 }
623623 } )
@@ -726,7 +726,7 @@ function prepareCluster(cluster, context, isExtension = false) {
726726 isFabricSensitive : isAccessFabricSensitive ( attribute ) ,
727727 entryType : attribute . $ . entryType ,
728728 mustUseTimedWrite : attribute . $ . mustUseTimedWrite == 'true' ,
729- apiMaturity : attribute . $ . apiMaturity ,
729+ apiMaturity : conformParser . getApiMaturityFromXML ( attribute ) ,
730730 isChangeOmitted : quality ? quality . changeOmitted == 'true' : false ,
731731 persistence : quality ? quality . persistence : null
732732 }
@@ -1410,7 +1410,7 @@ function prepareEnumOrBitmap(db, packageId, a, dataType, typeMap) {
14101410 ? [ { $ : { code : a . $ . cluster_code [ 0 ] } } ]
14111411 : null , // else case: Treating features in a cluster as a bitmap
14121412 discriminator_ref : dataType ,
1413- apiMaturity : a . $ . apiMaturity
1413+ apiMaturity : conformParser . getApiMaturityFromXML ( a )
14141414 }
14151415}
14161416
@@ -1467,7 +1467,7 @@ async function processEnumItems(db, filePath, packageId, knownPackages, data) {
14671467 name : item . $ . name ,
14681468 value : parseInt ( item . $ . value ) ,
14691469 fieldIdentifier : lastFieldId ,
1470- apiMaturity : item . $ . apiMaturity
1470+ apiMaturity : conformParser . getApiMaturityFromXML ( item )
14711471 } )
14721472 } )
14731473 }
@@ -1570,7 +1570,7 @@ async function processBitmapFields(
15701570 name : item . $ . name ,
15711571 mask : parseInt ( item . $ . mask ) ,
15721572 fieldIdentifier : lastFieldId ,
1573- apiMaturity : item . $ . apiMaturity
1573+ apiMaturity : conformParser . getApiMaturityFromXML ( item )
15741574 } )
15751575 } )
15761576 }
@@ -1605,7 +1605,7 @@ async function processBitmapFields(
16051605 name : item . $ . name ,
16061606 mask : 1 << itemBit ,
16071607 fieldIdentifier : itemBit ,
1608- apiMaturity : item . $ . apiMaturity
1608+ apiMaturity : conformParser . getApiMaturityFromXML ( item )
16091609 } )
16101610 } )
16111611 )
@@ -1631,7 +1631,7 @@ function prepareStruct(a, dataType) {
16311631 cluster_code : a . cluster ? a . cluster : null ,
16321632 discriminator_ref : dataType ,
16331633 isFabricScoped : a . $ . isFabricScoped == 'true' ,
1634- apiMaturity : a . $ . apiMaturity
1634+ apiMaturity : conformParser . getApiMaturityFromXML ( a )
16351635 }
16361636}
16371637
@@ -1691,7 +1691,7 @@ async function processStructItems(db, filePath, packageIds, data, context) {
16911691 isNullable : item . $ . isNullable == 'true' ? true : false ,
16921692 isOptional : item . $ . optional == 'true' ? true : false ,
16931693 isFabricSensitive : item . $ . isFabricSensitive == 'true' ? true : false ,
1694- apiMaturity : item . $ . apiMaturity
1694+ apiMaturity : conformParser . getApiMaturityFromXML ( item )
16951695 } )
16961696 } )
16971697 }
0 commit comments