Specify overflow for int data types (-INF, INF, NaN)

    • Hide

      New Proposal:

      1) Because annotating numeric values of arrays is problematic, and we are no longer trying to use JSON Schema as our schema language, revert application of the numericValueException annotation and continue the 4.0 literal "INF", "-INF", and "NaN" values.
      2) Support these values all numeric types. --> reduced to Decimal with floating scale by ODATA-1091
      3) Support -INF and INF for Edm.Date and Edm.DateTimeOffset --> OData Temporal Extension

      Previously applied proposal from 2016-5-12:

      1) Add a new annotation, "odata.numericValueException", with valid values "INF", "-INF" and "NaN".
      2) Services don't return the property, just the property annotation specifying the value exception:
      "NumberOfODataUsers@odata.numericValueException":"INF"
      3) Could be applied to any numeric type.
      4) For 4.01 clients, always return this for all numeric types, including single/double, instead of as property values.

      Show
      New Proposal: 1) Because annotating numeric values of arrays is problematic, and we are no longer trying to use JSON Schema as our schema language, revert application of the numericValueException annotation and continue the 4.0 literal "INF", "-INF", and "NaN" values. 2) Support these values all numeric types. --> reduced to Decimal with floating scale by ODATA-1091 3) Support -INF and INF for Edm.Date and Edm.DateTimeOffset --> OData Temporal Extension Previously applied proposal from 2016-5-12: 1) Add a new annotation, "odata.numericValueException", with valid values "INF", "-INF" and "NaN". 2) Services don't return the property, just the property annotation specifying the value exception: "NumberOfODataUsers@odata.numericValueException":"INF" 3) Could be applied to any numeric type. 4) For 4.01 clients, always return this for all numeric types, including single/double, instead of as property values.
    • Show
      https://www.oasis-open.org/committees/download.php/60255/odata-v4.01-wd02-part2-url-conventions-2017-03-10.docx https://www.oasis-open.org/committees/download.php/60257/odata-json-format-v4.01-wd02-2017-03-13.docx

      See ODATA-785 for a description of the issue --> Comments Section.

            Assignee:
            Michael Pizzo (Inactive)
            Reporter:
            martinzurmuehl
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: