Skip to content

fix: use flat property names in the flat REST schema - #42

Merged
cayossarian merged 2 commits into
mainfrom
fix/flat-schema-property-names
Aug 19, 2026
Merged

fix: use flat property names in the flat REST schema#42
cayossarian merged 2 commits into
mainfrom
fix/flat-schema-property-names

Conversation

@cayossarian

Copy link
Copy Markdown
Member

The REST schema served at /api/v2/homie/schema declared firmware-version and cloud-connection, which are the v1.0 names. This file describes the flat schema, where the migration guide records those as software-version and vendor-cloud; the rename happens at v1.0, not before.

The MQTT wire profile already published the flat names, so the two halves of the simulator disagreed: consumers that build field metadata from the REST types concluded the fields did not exist while their values were arriving on MQTT. Also corrects pv and evse, which had the same leak.

The REST schema served at /api/v2/homie/schema declared firmware-version and
cloud-connection, which are the v1.0 names. This file describes the flat schema,
where the migration guide records those as software-version and vendor-cloud;
the rename happens at v1.0, not before.

The MQTT wire profile already published the flat names, so the two halves of the
simulator disagreed: consumers that build field metadata from the REST types
concluded the fields did not exist while their values were arriving on MQTT.
Also corrects pv and evse, which had the same leak.
@cayossarian
cayossarian merged commit 826be47 into main Aug 19, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant