COVESA / vss-tools

Software for working with VSS (https://github.com/COVESA/vehicle_signal_specification)
Mozilla Public License 2.0
51 stars 55 forks source link

DDSIDL: Cannot handle allowed values with blanks #289

Open erikbosch opened 1 year ago

erikbosch commented 1 year ago

vspec2ddsidl cannot handle string literals with included blanks, like below ( a blank after WITH_).

This is valid VSS (although not following VSS style guide), so vspec2ddsidl should preferably handle this, by ignoring/escaping so that the value becomes a legal DDSIDL value.

MySignal:
  datatype: string[]
  type: attribute
  allowed: ['NO_BLANK', 'WITH_ BLANK', 'SMÖRGÅSTÅRTA']
  description: string value with blank
erikbosch commented 8 months ago

This is part of a longer discussion on allowed strings, where there are multiple aspects: