[web-bluetooth] BluetoothLEScanFilter's manufacturerData and serviceData are not arrays (#636)

jeroen1602 has just created a new issue for https://github.com/WebBluetoothCG/web-bluetooth:

== BluetoothLEScanFilter's manufacturerData and serviceData are not arrays ==
The `BluetoothLEScanFilters` dictionary is created from an `BluetoothLEScanFilterInit` but its `manufacturerData` and `serviceData` fields aren't an array.

https://github.com/WebBluetoothCG/web-bluetooth/blob/f3b31870764ce76fa1fa671f7bcdac7944a246a0/scanning.bs#L374-L382

In the `BluetoothLEScanFilterInit` dictionary that is used in the constructor they are referenced as being a `sequence` so when converting to an `BluetoothLEScanFilters` what needs to happen to the extra items in the array?

https://github.com/WebBluetoothCG/web-bluetooth/blob/f3b31870764ce76fa1fa671f7bcdac7944a246a0/index.bs#L529-L535

The docs seem to assume that the fields are singular and not an array.

https://github.com/WebBluetoothCG/web-bluetooth/blob/f3b31870764ce76fa1fa671f7bcdac7944a246a0/scanning.bs#L419-L426


Please view or discuss this issue at https://github.com/WebBluetoothCG/web-bluetooth/issues/636 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 15 November 2024 15:02:54 UTC