COVESA / COVESA/s2dm

Handle datatypes for allowed values

Open
#8 0 comments 0 reactions 1 assignee Claimed by @jdacoello View on GitHub
enhancement help wanted
Dominant language
Python
Stars
17
Forks
10
Avg merge
1d 10h
Merged PRs (30d)
2

Description

VSS allows the specification of any datatype for allowed values.
```yaml
FuelType:
type: attribute
allowed: ["DIESEL","E10","E5"]
datatype: string
...

Gear:
type: sensor
allowed: [1,2,3,4,5]
datatype: int
```

GraphQL, however represents values of enums as String:
```
enum GearEnum {
_1
_2
_3
}
```
The revolvers can map the enum to any datatype.

--
How to handle that?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.