[OASIS Issue Tracker] (ODATA-1151) Edm.Stream and Nullable

From
OASIS Issues Tracker <>
Date
2018-03-02T11:30:48+00:00
ID
Thread
[OASIS Issue Tracker] (ODATA-1151) Edm.Stream and Nullable
[ https://issues.oasis-open.org/browse/ODATA-1151?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ralf Handl updated ODATA-1151:
------------------------------

    Proposal: 
1) Expanded returns null
2) Link is always valid, returns 204 if the value is null

Remark:
1) is consistent with the representation of structural properties of other primitive type and with expanded single-valued navigation properties
2) is consistent with directly accessing a property that has the null value, directly accessing the raw value of a property that has the null value, and directly accessing a single-valued navigation property that has no entity related
- http://docs.oasis-open.org/odata/odata/v4.01/cs01/part1-protocol/odata-v4.01-cs01-part1-protocol.html#sec_RequestingIndividualProperties
- http://docs.oasis-open.org/odata/odata/v4.01/cs01/part1-protocol/odata-v4.01-cs01-part1-protocol.html#sec_RequestingaPropertysRawValueusingval
- http://docs.oasis-open.org/odata/odata/v4.01/cs01/part1-protocol/odata-v4.01-cs01-part1-protocol.html#sec_RequestingRelatedEntities



  was:
Working proposal:
1) Expanded returns null
2) Link is always valid, returns 204 if the value is null


> Edm.Stream and Nullable
> -----------------------
>
>                 Key: ODATA-1151
>                 URL: https://issues.oasis-open.org/browse/ODATA-1151
>             Project: OASIS Open Data Protocol (OData) TC
>          Issue Type: Improvement
>          Components: CSDL JSON , CSDL XML, JSON Format
>    Affects Versions: V4.01_CS01, V4.0_ERRATA03
>            Reporter: Ralf Handl
>            Priority: Minor
>             Fix For: V4.01_CS02, V4.0_ERRATA04
>
>
> Can stream properties be nullable?
> If yes, how would a null value be represented?
> - if expanded: "streamProp":null
> - if not expanded: "streamProp@mediaReadLink":null, i.e. no link?



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