-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: V4.01_COS02
-
Component/s: CSDL XML
-
Labels:None
-
Environment:
Proposed
-
Proposal:
-
Resolution:
CSDL XML 4.01 sectin 14.3.12 Time of Day
The edm:TimeOfDay expression evaluates to a primitive time value. A time-of-day expression MUST be assigned a value conforming to the rule timeOfDayValue in [OData‑ABNF].
ABNF shows:
timeOfDayValue = hour ":" minute [ ":" second [ "." fractionalSeconds ] ]
(so the second can be omitted)
But in http://docs.oasis-open.org/odata/odata/v4.0/os/schemas/edm.xsd
<xs:simpleType name="time">
<xs:restriction base="xs:time">
<xs:pattern value="([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\.[0-9]
)?"/>
</xs:restriction>
</xs:simpleType>
doesn't allow the seconds portion to be omitted, so is inconsistent with the ABNF timeOfDay references by CSDL spec.