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-1210) CSDL ReturnType element needs to specify rules for Nullable and Collection with entity types


Evan Ireland created ODATA-1210:
-----------------------------------

             Summary: CSDL ReturnType element needs to specify rules for Nullable and Collection with entity types
                 Key: ODATA-1210
                 URL: https://issues.oasis-open.org/browse/ODATA-1210
             Project: OASIS Open Data Protocol (OData) TC
          Issue Type: Improvement
    Affects Versions: V4.01_CS01
         Environment: It is reasonable to assume:
 * A collection of entities never contains null because the ânull entityâ has no meaning.
 * A function returning a single entity would have to return 204 No Content to signal âno entity returnedâ, similar to following a single-valued navigation property with nothing associated at that point in time.

Therefore:
 * A function returning entities behaves like a navigation property.
 * A function returning structured or primitive instances behaves like a structural property.

In regard to CSDL XML/JSON 4.01, we should specify:

Nullable should never be specified for a Collection(SomeEntityType), and it must always be considered to be false by default. This would bring consistency with navigation properties.

Going one step further, we should probably apply this reasoning to Parameter elements, i.e. a parameter of type Collection(SomeEntityType) should also never have an explicit Nullable facet.

Â

Â
            Reporter: Evan Ireland






--
This message was sent by Atlassian JIRA
(v7.7.2#77003)


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