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

Default values for $Precision and $Scale

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: V4.01_CSD01
    • Fix Version/s: V4.01_CSD02
    • Component/s: CSDL JSON
    • Labels:
      None
    • Proposal:
      Hide

      $Scale defaults to "variable". This is in line with the "number" type of OpenAPI and JSON Schema.

      $Precision does not have a default value, omission means arbitrary precision, both for Edm.Decimal (already the case) and for temporal types. The latter is in line with the "date-time" format of OpenAPI and JSON Schema for timestamps.

      Show
      $Scale defaults to "variable". This is in line with the "number" type of OpenAPI and JSON Schema. $Precision does not have a default value, omission means arbitrary precision, both for Edm.Decimal (already the case) and for temporal types. The latter is in line with the "date-time" format of OpenAPI and JSON Schema for timestamps.
    • Resolution:
      Show
      https://www.oasis-open.org/committees/download.php/61625/odata-csdl-json-v4.01-wd02-2017-09-22.docx

      Description

      After aligning the default for $Nullable with OpenAPI and JSON Schema, we should do the same with $Precision and $Scale

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              handl Ralf Handl
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: