Closed djs0109 closed 1 month ago
Hi @RCX112, could you have a look at this issue?
@djs0109 I can do that. I should set the expressionLanguage to jexl when it is set to None, otherwise it will be set to legacy in older versions of the IoT Agent
@RCX112 Thanks! That sounds good 👍
Branch 312-Expressionlanguage-in-device-should-be-optional created!
Describe the bug Expressionlanguage is not set as optional in the datamodel of
DeviceSettings
, which will cause unexpected validation errorTo Reproduce
Suggestion
Use
expressionLanguage: Optional[ExpressionLanguage] = Field(...
, and add a test to prevent this happen again.