OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

odata message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [OASIS Issue Tracker] (ODATA-920) Specify overflow for int data types (-INF, INF, NaN)


    [ https://issues.oasis-open.org/browse/ODATA-920?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=63978#comment-63978 ] 

Michael Pizzo commented on ODATA-920:
-------------------------------------

As much as I like the expando-values, changing the structure based on annotations, which are supposed to be innocuous/ignorable.  This seems to move us further away from "hand crafted" json.

In most cases I've seen "annotations" done as parallel arrays.  We could instead introduce a new "annotations" term that is an array of the same cardinality as the annotated collection and is used to annotate array values. This single annotation could be safely ignored and doesn't otherwise affect the structure of the array.

<Term Name="annotations" Type="Collection(Edm.Untyped)"/>

{
    "myArray":[1,2,null,4,5],
    "myArray@annotations":[null,null,{"@numericValueException":"NaN"},null,null}
}

> Specify overflow for int data types (-INF, INF, NaN)
> ----------------------------------------------------
>
>                 Key: ODATA-920
>                 URL: https://issues.oasis-open.org/browse/ODATA-920
>             Project: OASIS Open Data Protocol (OData) TC
>          Issue Type: Improvement
>          Components: OData JSON Format, OData URL Conventions
>    Affects Versions: V4.0_OS
>         Environment: Proposal needed for CSD01
>            Reporter: Martin Zurmuehl
>            Assignee: Michael Pizzo
>             Fix For: V4.01_WD01
>
>
> See ODATA-785 for a description of the issue --> Comments Section.



--
This message was sent by Atlassian JIRA
(v6.2.2#6258)


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]