View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0008792 | 10000-006: Mappings | Spec | public | 2023-04-13 17:45 | 2023-05-16 15:34 |
Reporter | Thilo Bellinger | Assigned To | Randy Armstrong | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.05.02 RC1 | ||||
Fixed in Version | 1.05.03 RC1 | ||||
Summary | 0008792: Unclear and missing description about Enumerations in Variants (mainly for JSON encoding) | ||||
Description | It may look pedantic, but it is not really clear if an Enumeration can hold an Enumeration directly or if an Enumeration must be converted to another data type (usually Int32) to be stored in a Variant. For binary and XML encoding it does not matter since Enumeration values in Variants are always sent as Int32. For the JSON reversible encoding it is not described as which data type an Enumeration shall be sent within a Variant, the value is a number but the Type number is unknown. I assume the Enumeration value in a Variant should be sent in the same way as it would be sent directly:
Can a Variant hold an Enumeration? | ||||
Tags | No tags attached. | ||||
Commit Version | |||||
Fix Due Date | |||||
|
The issue is not clear. The Variant definition says: For the reversible it would be encoded as a number. There is no inconsistency with XML because XML does not have a non-reversible encoding. |
|
The problem is that our SDK is currently not able to store the full information of an Enumeration value (type name, value name and number) inside our variant data structure to select the representation via the JSON reversible flag.
|
|
Added text: If an enumeration is encoded using in the reversible encoding within a Variant, the Type field is Built-in Type Int32. |
|
Agreed to changes edited in Web meeting. |
Date Modified | Username | Field | Change |
---|---|---|---|
2023-04-13 17:45 | Thilo Bellinger | New Issue | |
2023-04-18 15:19 | Jim Luth | Assigned To | => Randy Armstrong |
2023-04-18 15:19 | Jim Luth | Status | new => assigned |
2023-05-11 20:47 | Randy Armstrong | Status | assigned => feedback |
2023-05-11 20:47 | Randy Armstrong | Note Added: 0019328 | |
2023-05-12 09:47 | Thilo Bellinger | Note Added: 0019342 | |
2023-05-12 09:47 | Thilo Bellinger | Status | feedback => assigned |
2023-05-13 16:21 | Randy Armstrong | Status | assigned => resolved |
2023-05-13 16:21 | Randy Armstrong | Resolution | open => fixed |
2023-05-13 16:21 | Randy Armstrong | Note Added: 0019368 | |
2023-05-16 15:34 | Jim Luth | Status | resolved => closed |
2023-05-16 15:34 | Jim Luth | Fixed in Version | => 1.05.03 RC1 |
2023-05-16 15:34 | Jim Luth | Note Added: 0019378 |