← Prev in month ← Prev in thread
Next in thread → Next in month →

[OASIS Issue Tracker] (ODATA-1361) CSDL TimeOfDay literals inconsistent with XSD

From
OASIS Issues Tracker <>
Date
2020-03-30T01:51:06+00:00
ID
Thread
[OASIS Issue Tracker] (ODATA-1361) CSDL TimeOfDay literals inconsistent with XSD
Evan Ireland created ODATA-1361:
-----------------------------------

             Summary: CSDL TimeOfDay literals inconsistent with XSD
                 Key: ODATA-1361
                 URL: https://issues.oasis-open.org/browse/ODATA-1361
             Project: OASIS Open Data Protocol (OData) TC
          Issue Type: Improvement
            Reporter: Evan Ireland


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]{1,12})?"/>
  </xs:restriction>
</xs:simpleType>

doesn't allow the seconds portion to be omitted, so is inconsistent with the ABNF timeOfDay references by CSDL spec.



--
This message was sent by Atlassian Jira
(v8.3.3#803004)
← Prev in month ← Prev in thread
Next in thread → Next in month →