View Issue Details

IDProjectCategoryView StatusLast Update
000729410000-006: MappingsSpecpublic2021-09-24 12:25
ReporterMartin Regen Assigned ToRandy Armstrong  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version1.05.00 RC1 
Summary0007294: Clarify non reversible JSON can not omit default values (for numbers) or information may be lost
Description

Follow up on discussion 09/22/21 face 2 face on Part6 5.1.2 Built in Types default values.

In the reversible JSON encoding fields can be omitted without losing information, because the decoder can fill in the default value, e.g. 0.0 for a float.

In the non reversible case if a field with a default value is omitted, there might be information loss.

At least numbers should not be omitted in such a case.

e.g. a sensor may produce values of 0,1,0, with a minimal PubSub encoding, the value might be omitted and the decoder may loose the 0 alues because they were not encoded.

TagsNo tags attached.
Commit Version
Fix Due Date

Activities

Randy Armstrong

2021-09-24 05:26

administrator   ~0014990

Added clear rules that explain how fields are encoded for Structures in 5.4.6 and 5.4.7 in Draft 6.

Jim Luth

2021-09-24 12:25

administrator   ~0014999

Agreed to changes in 1.05.1 Draft 6.

Issue History

Date Modified Username Field Change
2021-09-22 18:51 Martin Regen New Issue
2021-09-22 18:57 Randy Armstrong Project 10000-005: Information Model => 10000-006: Mappings
2021-09-24 05:26 Randy Armstrong Assigned To => Randy Armstrong
2021-09-24 05:26 Randy Armstrong Status new => resolved
2021-09-24 05:26 Randy Armstrong Resolution open => fixed
2021-09-24 05:26 Randy Armstrong Note Added: 0014990
2021-09-24 12:25 Jim Luth Status resolved => closed
2021-09-24 12:25 Jim Luth Fixed in Version => 1.05
2021-09-24 12:25 Jim Luth Note Added: 0014999