Default values for $Precision and $Scale

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major
    • V4.01_CSD02
    • Affects Version/s: V4.01_CSD01
    • Component/s: CSDL JSON
    • None
    • 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.
    • Show
      https://www.oasis-open.org/committees/download.php/61625/odata-csdl-json-v4.01-wd02-2017-09-22.docx

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

            Assignee:
            Unassigned
            Reporter:
            handl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: