Seeking clarification on trailing required semicolon for reference fields
This issue popped up recently in storing records via the Storage Service. We're seeking clarification on the format of certain reference fields that require a trailing :
whereas the id
format of the parent record does not have the trailing :
requirement.
Example:
- Wellbore has an
id
property format of:^[\\w\\-\\.]+:master-data\\-\\-Wellbore:[\\w\\-\\.\\:\\%]+$
- WellLog.WellboreID has a format of:
^[\\w\\-\\.]+:master-data\\-\\-Wellbore:[\\w\\-\\.\\:\\%]+:[0-9]*$
If we play out the example as a workflow of storing data, then we might see the following:
- Create a new
Wellbore
record via the Storage API - The Storage Service creates an
id
with a value ofopendes:master-data--Wellbore:7fc872cca42047f48725adc005f09705
, which conforms to theWellbore.id
format - Then create a new
WellLog
record and set theWellboreID
value to theid
returned by the Storage service (opendes:master-data--Wellbore:7fc872cca42047f48725adc005f09705
) - Save the
WellLog
record via the Storage Service - The
WellboreID
property will fail validation as it lacks the trailing:
Question: Should the WellLog.WellboreID
format require the trailing :
if the Wellbore.id
property does not require it?