You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks weird, but its valid JSON schema. It indicates that the "properties" are independently available for use at that level, while the "oneOf" are exclusionary (its only valid if its only using ONE of the designated combinations of properties). Threw me off at first too.
@i8beef interpretation is correct, the properties refer to the common properties while the oneOf provide additional contraints for validating other properties that depends on attributes. Maybe this could be made clearier with the usage of an additionalProperties subschemas.
Alternatively because the oneOf currently already duplicate some of the properties we would rely on a top-level oneOf and duplicate the common properties.
action.devices.traits.TemperatureSetting has both properties and onOf, seeing as no other trait has this, this seems like a mistake.
The text was updated successfully, but these errors were encountered: