fix: SetParameterAttributes XML emits 0/1 for boolean fields and drops xsi:type on Notification
NotificationChange and AccessListChange were emitting 'true'/'false' (JS booleans) instead of '1'/'0' as required by TR-069 spec. Notification xsi:type='xsd:int' attribute removed — consistent with old builder output.
This commit is contained in:
1 parent
b643077e8d
commit
ab45275a89
1 file changed
+3
-3
@@ -369,9 +369,9 @@ export class SetParameterAttributes {
|
||||
this.ParameterList?.SetParameterAttributesStruct?.map((attr) => {
|
||||
return `<SetParameterAttributesStruct>
|
||||
<Name xsi:type="xsd:string">${attr.Name}</Name>
|
||||
<NotificationChange>${attr.NotificationChange}</NotificationChange>
|
||||
<Notification xsi:type="xsd:int">${attr.Notification}</Notification>
|
||||
<AccessListChange>${attr.AccessListChange}</AccessListChange>
|
||||
<NotificationChange>${attr.NotificationChange ? 1 : 0}</NotificationChange>
|
||||
<Notification>${attr.Notification}</Notification>
|
||||
<AccessListChange>${attr.AccessListChange ? 1 : 0}</AccessListChange>
|
||||
<AccessList soap-enc:arrayType="xsd:string[${attr.AccessList?.string?.length ?? 0}]">${attr.AccessList ? attr.AccessList.string!.join(', ') : ''}</AccessList>
|
||||
</SetParameterAttributesStruct>`
|
||||
}).join('') || ''
|
||||
|
||||
Reference in new issue
Block a user