chrivers / bifrost

Hue Bridge Emulator
GNU General Public License v3.0
117 stars 5 forks source link

Chrivers/normalization #44

Open chrivers opened 1 month ago

chrivers commented 1 month ago

This MR integrates a large number of fixes for the Hue Api model.

It is based on testing the API models on real-world data samples provided by volunteers.

Thanks to @hendriksen-mark @tbgoose @anderstrier @joeblack2k and others for providing sample data for testing.

Also new in this MR is the program examples/normalize-hue-get.rs, which reads data dumps from hue bridges, and encodes/decodes them through the Bifrost hue api models.

Anything that does not come out exactly the same, is reported as an error.

This has helped tremendously in finding weird edge cases in the api models.