In certain contexts some fields must have compact @id references instead of the data object. This card is related #402 which was fixed by #407
For the Slots feed, the correct implementation is
"facilityUse": "https://localhost/ven_000229-rbt_000010",
The below example is incorrect:
"facilityUse":{
"@type":"FacilityUse",
"@id":"https://localhost/ven_000229-rbt_000010",
"identifier":"ven_000229-rbt_000010"
},
This is also the case for a ScheduledSession feed of RPDE kind: ScheduledSession but not RPDE kind:ScheduledSession.SessionSeries. Examples below:
// Valid
{
"kind": "ScheduledSession",
"data": {
"@type": "ScheduledSession",
"superEvent": "https://example.com/SessionSeries/1"
...
},
...
}
// Invalid
{
"kind": "ScheduledSession",
"data": {
"@type": "ScheduledSession",
"superEvent": {
"@type": "SessionSeries",
"@id": "https://example.com/SessionSeries/1"
...
}
...
},
...
}
// Valid
{
"kind": "ScheduledSession.SessionSeries",
"data": {
"@type": "ScheduledSession",
"superEvent": {
"@type": "SessionSeries",
"@id": "https://example.com/SessionSeries/1"
...
}
...
},
...
}
Validator
Therefore in order to implement @id reference validation with feed context, the rule must use the kind to determine what is valid, and therefore kind must be passed into the .validate() function options when used.
Test Suite
To finish this task, Test Suite must pass kind where it validates the feeds in order to ensure that the Slots and ScheduledSession feeds are fully validated.
In certain contexts some fields must have compact
@idreferences instead of the data object. This card is related #402 which was fixed by #407For the Slots feed, the correct implementation is
The below example is incorrect:
This is also the case for a ScheduledSession feed of RPDE
kind: ScheduledSessionbut not RPDEkind:ScheduledSession.SessionSeries. Examples below:Validator
Therefore in order to implement @id reference validation with feed context, the rule must use the
kindto determine what is valid, and thereforekindmust be passed into the.validate()function options when used.Test Suite
To finish this task, Test Suite must pass kind where it validates the feeds in order to ensure that the Slots and ScheduledSession feeds are fully validated.