beckn / beckn/protocol-specifications-v2
Schema:startTime in beckn:TimePeriod should support both date-time and time formats
Open
- Dominant language
- No language data
- Stars
- 15
- Forks
- 13
- PR merge metrics
- No merged PRs in 30d
Description
Since https://schema.org/startTime supports both https://schema.org/DateTime and https://schema.org/Time objects, so should beckn:TimePeriod [here.](https://github.com/beckn/protocol-specifications-v2/blob/main/schema/core/v2/attributes.yaml#L355).
one proposal is to allow startTime to be oneOf:
- openapi `time` format
- openapi `date-time` format
Downstream schemas can further restrict data types if they choose.
Contributor guide
Assessment
This issue has not been assessed yet.