Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DDSIDL: Cannot handle allowed values with blanks #289

Open
erikbosch opened this issue May 29, 2023 · 1 comment
Open

DDSIDL: Cannot handle allowed values with blanks #289

erikbosch opened this issue May 29, 2023 · 1 comment

Comments

@erikbosch
Copy link
Collaborator

erikbosch commented May 29, 2023

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
Copy link
Collaborator Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant