[ https://issues.oasis-open.org/browse/ODATA-920?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=63981#comment-63981 ]
Michael Pizzo edited comment on ODATA-920 at 11/3/16 8:58 PM:
--------------------------------------------------------------
Perhaps support both:
{
"number": 3
"":"myfavoritenumber",
"numbers":[1,2,3,null],
"numbers@":[1,2,{"@ns.comment":"myfavoritenumber","Value":3},{"@numericValueException":"INF"}]
}
With a new preference services could always and only return annotated primitive values as objects (without the trailing "@"):
{
"number": {"@ns.comment":"myfavoritenumber","Value":3},
"numbers":[1,2,{"@ns.comment":"myfavoritenumber","Value":3},{"@numericValueException":"INF"}]
}
Need to think through how this affects arrays of arrays, nav props, counts, complex types, etc...
i.e; currently we do:
{
NavProp:[...]
:41
}
would that become:
{
NavProp:{@odata.count:41,value:[...]}
}
For count, would we do:
{
"number@":{
"odata.count":4,
"Value": [
1,
2,
{
"@comment":"myfavoritenumber",
"Value":3
},
{"@numericValueException":"INF"}
]
}
}
was (Author: mikep):
Perhaps support both:
{
"number": 3
"":"myfavoritenumber",
"numbers":[1,2,3,null],
"numbers@":[1,2,{"@ns.comment":"myfavoritenumber","Value":3},{"@numericValueException":"INF"}]
}
With a new preference services could always and only return annotated primitive values as objects (without the trailing "@"):
{
"number": {"@ns.comment":"myfavoritenumber","Value":3},
"numbers":[1,2,{"@ns.comment":"myfavoritenumber","Value":3},{"@numericValueException":"INF"}]
}
Need to think through how this affects arrays of arrays, nav props, counts, complex types, etc...
> 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)