When creating Things with complex Thing Models that contain nested tm:ref references, Ditto was only resolving the first level of references. This caused properties with nested tm:ref to remain unresolved, resulting in null values for required properties in generated Thing skeletons and subsequent validation errors.
Solution
Refactor the model resolution logic to recursively resolve all tm:ref references at any depth in the Thing Model JSON structure.