COVESA / COVESA/vss-tools

DDSIDL: Cannot handle allowed values with blanks

Open
#289 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
79
Forks
76
Avg merge
5d 5h
Merged PRs (30d)
7

Description

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
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the vspec2ddsidl handling for allowed string values and reproduce the issue with the VSS example in this report. The work is done when values containing blanks, such as 'WITH_ BLANK', are converted into legal DDSIDL values without breaking the other shown values, including the non-ASCII text.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.