Dimension in thing-description-1.0.0.xsd
#4156
Labels
bug
An unexpected problem or unintended behavior of the Core
thing-description-1.0.0.xsd
#4156
I randomly noticed that there is a list of dimensions in thing-description-1.0.0.xsd:
openhab-core/bundles/org.openhab.core.thing/schema/thing/thing-description-1.0.0.xsd
Lines 201 to 250 in c9ee992
This list hasn't been updated for a while, for example the following are missing:
and probably others as well.
But then I validated a thing type definition containing one of those, and it passed. Apparently
dimension
is not used at all, sinceitem-type
is defined asxs:string
:openhab-core/bundles/org.openhab.core.thing/schema/thing/thing-description-1.0.0.xsd
Line 66 in c9ee992
So I'm wondering: Should it even be in the file? Is it a left-over, or deliberately kept for some sort of legacy backwards compatibility?
Expected Behavior
I would expect
dimension
to be either maintained and used, or not in the XSD at all.Current Behavior
The XSD contains a definition for
dimension
, but apparently it is not used.Possible Solution
Remove it from the XSD, if this is feasible without breaking compatibility and/or requiring a new version, which might complicate things.
The text was updated successfully, but these errors were encountered: