Hello,
During an OpenRemote code analysis, one of our developers discovered what appears to be an undocumented way to deploy a new asset type using a JSON file placed in the “asset_model” folder inside the OR storage directory (AssetModelService.java).
I would like to ask whether this is an officially supported method for adding new asset types to the system (i.e., without the need to compile JAR files, requiring only a Manager restart after adding the JSON file), or whether we should continue using Java classes as described in the documentation. If the latter is recommended, could you explain why defining an AssetType via a Java class is preferable to using a JSON file?
Regards,
Krzysztof