Closed peter-dolkens closed 1 year ago
Hi @dolkensp great challenge! Not something we've come across before. We've got this for distance but not more duration.
It's more tricky with duration
as it's strongly tied to startDate
and endDate
, and is used in calculations... so maybe best not to override it at this stage.
My suggestion would be for you to raise a proposal for a new property called something like "estimatedDuration
" of type QuantitativeValue
and unitCode
of MIN
.
This follows the pattern of other duration ranges in schema.org that use QuantitativeValue
:
And follows the property naming pattern of estimatedX
:
If you include in your proposal a suggestion of using beta:estimatedDuration
to test the property we can get it added to the beta namespace.
I would suggest that part of your proposed conformance criteria is that if estimatedDuration
is provided, then endDate
and duration
MUST not be provided, which ensures that data is provided accurately.
@dolkensp have added this to beta (see https://github.com/openactive/modelling-opportunity-data/issues/201) looks great!
Best not to include "endDate"
with this for now if it's a date without time: it should be a datetime for this scenario, or not included.
Closed as moved to https://github.com/RunTogether/opendata/issues/8
Open endpoint for QA:
-- AND / OR --
Sample JSON:
Hey @nickevansuk,
After pushing our latest feed live, and re-checking the validation errors, we have 1 issue left, which is durations like above, which are listed as 0 seconds.
In Clubspark, we actually capture durations as a range (0-30mins, 30-60mins, 60-90mins, 90+)
The spec states that we must return an ISO8601 format duration, however it's also validating that this duration is non-zero.
How should we handle this?
Elsewhere, we've been able to set a min and max value (e.g. age ranges), but there doesn't seem to be the same flexibility within duration.