Just because I can... here's the wiring diagram for the boot latch. The red box (drawn by the software, not me) is the latch unit and shows there are four wires connected to it. The Violet wire operates the motor that opens the boot, the white & yellow one connects to the boot light and the white & grey one to the switch which confirms the boot is fully closed. Black is the earth. The unit marked E34 is the body computer – the gubbins that operates just about every part of the car (and is the unit the interior fuse are mounted in at the back of the glovebox). O4 is a connector 'somewhere in the car', O105 is the boot light unit itself. O166 is the number plate lights but I think is also showing the microswitch that opens the boot.
The point about all this is it suggested there's only one switch inside the latch, but that it needs to fully move to both ends of its travel to keep things happy.
View attachment 416255