Uploaded image for project: 'OASIS Open Data Protocol (OData) TC'
  1. OASIS Open Data Protocol (OData) TC
  2. ODATA-1361

CSDL TimeOfDay literals inconsistent with XSD

    XMLWordPrintable

    Details

    • 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

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              evan.ireland.2 Evan Ireland
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: