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
Currently it is possible for vendors to define non-standard (vendor specific) datatypes inheriting from NcDescriptor, NcPropertyConstraints, NcParameterConstraints and their subtypes.
This should be either prohibited, or discouraged as the function of NcDescriptor, NcPropertyConstraints, and NcParameterConstraints types are well described in the specification, but there is no mechanism to "discover" the function of any new, vendor specified subtypes.
For instance, with the NcParameterConstraintsNumber we know the rules relating to the constraints:
the rule for minimum is that the value can't be less than
the rule for maximum is that the value can't be greater than
etc.
But those rules can't be discovered from the framework - they are defined in the specification.
So if I came up with a non-standard datatype SonyParameterConstraintsFoo which had fields foo and bar there is no mechanism for me to discover the rules associated with those constraints.
It would need to have a separate specification document to describe the rules which goes against the "self-describing" ethos of the Device Model, and therefore those datatypes would not be understood by generic MS-05 clients.
The same applies to the NcDescriptor subtypes where each have a specific function within the framework. A vendor specified NcDescriptor subtype would not be understood by clients.
The text was updated successfully, but these errors were encountered:
Currently it is possible for vendors to define non-standard (vendor specific) datatypes inheriting from
NcDescriptor
,NcPropertyConstraints
,NcParameterConstraints
and their subtypes.This should be either prohibited, or discouraged as the function of
NcDescriptor
,NcPropertyConstraints
, andNcParameterConstraints
types are well described in the specification, but there is no mechanism to "discover" the function of any new, vendor specified subtypes.For instance, with the
NcParameterConstraintsNumber
we know the rules relating to the constraints:minimum
is that the value can't be less thanmaximum
is that the value can't be greater thanBut those rules can't be discovered from the framework - they are defined in the specification.
So if I came up with a non-standard datatype
SonyParameterConstraintsFoo
which had fieldsfoo
andbar
there is no mechanism for me to discover the rules associated with those constraints.It would need to have a separate specification document to describe the rules which goes against the "self-describing" ethos of the Device Model, and therefore those datatypes would not be understood by generic MS-05 clients.
The same applies to the
NcDescriptor
subtypes where each have a specific function within the framework. A vendor specifiedNcDescriptor
subtype would not be understood by clients.The text was updated successfully, but these errors were encountered: