MLopezJ / LWM2M-JSONSchema

LWM2M protocol From XML to JSON Schema
0 stars 0 forks source link

Implement Multiple Instances in Resources level #15

Closed MLopezJ closed 1 year ago

MLopezJ commented 1 year ago

In https://github.com/MLopezJ/LWM2M-JSONSchema/issues/11 , the Multiple Instance option was added.

However that implementation was made only on the first layer of the object, ignoring the fact that in Resources there is also the same property and same implementation is needed there.


<LWM2M xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.openmobilealliance.org/tech/profiles/LWM2M-v1_1.xsd">
  <Object ObjectType="MODefinition">
        ....
        <MultipleInstances>Multiple</MultipleInstances>
        ...
        <Resources>
            <Item ID="0">
                ...
                <MultipleInstances>Single</MultipleInstances>
                ...
            </Item>
    </Object>
</LWM2M>