View Issue Details

IDProjectCategoryView StatusLast Update
000789110000-006: MappingsSpecpublic2023-01-03 17:06
ReporterKevin Herron (Inductive Automation) Assigned ToRandy Armstrong  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.04 
Target Version1.05.03 RC1Fixed in Version1.05.03 RC1 
Summary0007891: Non-reversible encoding of Variant and ExtensionObject described incorrectly
Description

In the spec, the non-reversible form of Variant is described using language like this:

For the non-reversible form, Variant values shall be encoded as a JSON object containing only
the value of the Body field.

The problem is that "JSON object" means something very specific, both in the context of JSON itself, and the way that phrase is used in the rest of the spec when it talks about encoding an object. As written it implies a Variant (containing e.g. true) in the non-reversible form would be encoded like:

{"Body":true}
or
{"SomeField":{"Body":true}}

Speaking with Randy, the intention is that it would simply be:

true
or
{"SomeField":true}

He suggested the spec should say:

For the non-reversible form, Variant values shall be encoded as a JSON value which is the same as the value of the Body field.

ExtensionObject is also described using this language and I suspect the actual intention is the same as Variant.

TagsNo tags attached.
Commit Version
Fix Due Date

Activities

Randy Armstrong

2022-12-29 16:53

administrator   ~0018374

Updated 5.4.2.17 and 5.4.2.16 to use JSON value instead of JSON object.

Jim Luth

2023-01-03 17:06

administrator   ~0018393

Agreed to changes in telecon.

Issue History

Date Modified Username Field Change
2022-03-25 11:50 Kevin Herron (Inductive Automation) New Issue
2022-03-25 11:51 Kevin Herron (Inductive Automation) Description Updated
2022-03-25 11:52 Kevin Herron (Inductive Automation) Description Updated
2022-03-25 11:52 Kevin Herron (Inductive Automation) Description Updated
2022-03-25 11:52 Kevin Herron (Inductive Automation) Description Updated
2022-03-25 11:52 Kevin Herron (Inductive Automation) Description Updated
2022-07-12 16:06 Jim Luth Target Version => 1.05.03 RC1
2022-07-12 16:06 Jim Luth Assigned To => Randy Armstrong
2022-07-12 16:06 Jim Luth Status new => assigned
2022-12-29 16:53 Randy Armstrong Status assigned => resolved
2022-12-29 16:53 Randy Armstrong Resolution open => fixed
2022-12-29 16:53 Randy Armstrong Fixed in Version => 1.05.03 RC1
2022-12-29 16:53 Randy Armstrong Note Added: 0018374
2023-01-03 17:06 Jim Luth Status resolved => closed
2023-01-03 17:06 Jim Luth Note Added: 0018393