YAML thing provider string conversion info message

Running: openHAB 5.2.0.RC1 (Milestone Build)

I’ve been using some transformations to get the weather data from the US NWS. In 5.2 RC1, just upgraded from 5.1, I see this ‘INFO’ message, but it’s not clear to me what it is asking me to do. Since it is an INFO, does it need any action?

[INFO ] [ml.internal.things.YamlThingProvider] - "http:url:NWSChelan:Period_1_Name": the value of the configuration TEXT parameter "stateTransformation" is not interpreted as a string and will be automatically converted. Enclose your value in double quotes to prevent conversion.

The YAML thing code is:

      Period_1_Name:
        type: string
        label: Period 1 Name
        config:
          stateTransformation:
            - "JSONPATH:$.properties.periods[0].name"

What value needs to be enclosed in double quotes? And what is it automatically converted to?

The - in YAML is the array indicator. So, according to the warning, stateTransformation expects a string but you are providing a one element array with a string as the first element. This works just fine for you because ["my string"].toString() returns "my string" so in the end you get the value that stateTransformation needs.

If you want to avoid the warning, then you have to remove the array component of the yaml

          stateTransformation: "JSONPATH:$.properties.periods[0].name"