On the other hand, they are right. There is no real reason to add this property when it is an empty array [].
The SAFE transparency software seems to handle null values for IF in a special way. So the written code also differs from the format documentation.
BTW. BAUER also has XV, XU, XT extensions for the meter readings. The documentation only defines extensions for "top-level names in the JSON object". Perhaps an update to this section of the documentation would also useful.
Within the documentation of DZG meters https://www.dzg.de/fileadmin/dzg/content/downloads/produkte-zaehler/gsh/DZG_GSH01_product_manual_2022_12_08.pdf there is following example of OCMF v1.0 without an IF property. Also real-life OCMFs seem not to have this property. Nevertheless under https://github.com/SAFE-eV/OCMF-Open-Charge-Metering-Format/blob/master/OCMF-en.md is says "Also one or no element must be noted as an array.", while the cardinality is defined as
0..4
. It seems that manufacturers get this wrong as they might not read the entire text, or so.Also BAUER does not use
IF
...On the other hand, they are right. There is no real reason to add this property when it is an empty array
[]
.The SAFE transparency software seems to handle null values for
IF
in a special way. So the written code also differs from the format documentation.BTW. BAUER also has
XV
,XU
,XT
extensions for the meter readings. The documentation only defines extensions for "top-level names in the JSON object". Perhaps an update to this section of the documentation would also useful.