nmos-cpp
nmos-cpp copied to clipboard
Fix downgrade support
Fix IS-04 (v1.3) downgrade resource to register to v1.2 Registry.
There are some parameters which have been extended in nmos-parameter-registers for the latest nmos version.
The problem was identified when a downgraded v1.3 video flow with transfer_characteristic
set to UNSPECIFIED
failed to register to the v1.2 Registry. It is because v1.2 video flow schema used in the Registry does not allow transfer_characteristic
to be UNSPECIFIED
. This PR sets the default values for the downgraded resources when an invalid value is used or removes it if the parameter is optional.
See https://specs.amwa.tv/nmos-parameter-registers/branches/main/flow-attributes/#transfer-characteristic
Since this is a significant change to code which is used by both Node and Registry, I recommend unit tests with very good coverage are added.
Since this is a significant change to code which is used by both Node and Registry, I recommend unit tests with very good coverage are added.
Yes totally agree