beckn / beckn/protocol-specifications-v2

Schema:startTime in beckn:TimePeriod should support both date-time and time formats

Open
#84 0 comments 0 reactions 1 assignee Claimed by @ravi-prakash-v View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.