vss-tools icon indicating copy to clipboard operation
vss-tools copied to clipboard

DDSIDL: Cannot handle allowed values with blanks

Open erikbosch opened this issue 1 year ago • 1 comments

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 avatar May 29 '23 12:05 erikbosch

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

  • Strings generally allowed in VSS syntax (vss-tools VSPEC parser must be able to parse it, but expoertes/generators does not necessarily need to handle it
  • Strings allowed in standard VSS catalog - then also "supported" generators must be able to handle them in a coordinated way.

erikbosch avatar Jan 02 '24 10:01 erikbosch