View Issue Details

IDProjectCategoryView StatusLast Update
000548210000-006: MappingsSpecpublic2020-06-30 17:05
ReporterZbynek Zahradnik Assigned ToRandy Armstrong  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Summary0005482: JSON mapping of Unions not specified well
Description

There is no description of what "SwitchField" should be, besides that "The identifier for the field in the Union which is encoded as a JSON number.".
Based on the example given, if the reader is smart enough, he would look into Binary or XML mappings, and would make a guess that SwitchField is 1-based index of the union field, and that 0 has special meaning, but this information is missing from the JSON mapping.

Also, the case of an empty Union needs to be described. Is Value still present when SwitchField is 0, and if so, what does it contain?

TagsNo tags attached.
Commit Version
Fix Due Date

Activities

Randy Armstrong

2020-03-24 03:43

administrator   ~0011829

Added text:
The valid values for this field follow the conventions defined in 5.2.8.
If the value is 0, this field and the Value field are not present (i.e. the of of an empty Union).

Jim Luth

2020-06-30 17:05

administrator   ~0012526

Agreed to text edited in telecon. 1.05.19

Issue History

Date Modified Username Field Change
2020-02-25 10:39 Zbynek Zahradnik New Issue
2020-03-24 03:43 Randy Armstrong Assigned To => Randy Armstrong
2020-03-24 03:43 Randy Armstrong Status new => resolved
2020-03-24 03:43 Randy Armstrong Resolution open => fixed
2020-03-24 03:43 Randy Armstrong Note Added: 0011829
2020-06-30 17:05 Jim Luth Status resolved => closed
2020-06-30 17:05 Jim Luth Fixed in Version => 1.05
2020-06-30 17:05 Jim Luth Note Added: 0012526