CSDL TimeOfDay literals inconsistent with XSD

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major
    • V4.01_COS02
    • Affects Version/s: None
    • Component/s: CSDL XML
    • None
    • Environment:

      Proposed

      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.

            Assignee:
            Unassigned
            Reporter:
            evan.ireland.2
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: