[ST Edge] Device Preferences

The preferences key shouldn’t have leading spaces. That defines the hierarchy in YAML.

I wish they’d use a two space indent on the arrays. I know you don’t need it but it is how the CLI does it, and It is generally the typical default.

Still not having luck. Same result. I also tried uninstalling and reinstalling the devices:

# hello-world-profile
name: hello-world.v1
components:
  - id: main
    capabilities:
    - id: refresh
      version: 1
preferences:
  - title: "Local Token"
    name: token
    description: "Local Token from the Bond app settings"
    required: true
    preferenceType: string
    definition:
      stringType: text
      minLength: 16 
      maxLength: 16

Figured it out. I had to add a default value for the preference or it is ignored. This was not clear at all since the documentation says that the default is optional. Only found it by swapping in other profiles.

Sorry about that, that issue is already reported, also, please avoid setting the default value to null, if it’s a text, you can use "" and if it’s a number 0 (or the minimum value you defined)