Closed MLopezJ closed 1 year ago
// in this hypothetical example 0 is multiple instance and 1 is single instance
export const LwM2MType = Type.Object({
_0 : _0: Type.Union([_0, Type.Array(_0)]), // _0 | _0 [ ]
_1 : _1 // _1
})
The mandatory
property from the registry should be considered in the type definition of the LwM2M object.
Every LwM2M registry contain a
MultipleInstances
param with 2 possible values:Single
orMultiple
.More information about it here: https://github.com/MLopezJ/LWM2M-JSONSchema/issues/10
The multiple instance value should be reflected somehow in the LwM2M object definition.