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-1625) Cannot specify null as DefaultValue in CSDL XML


Heiko Theissen created ODATA-1625:
-------------------------------------

             Summary: Cannot specify null as DefaultValue in CSDL XML
                 Key: ODATA-1625
                 URL: https://issues.oasis-open.org/browse/ODATA-1625
             Project: OASIS Open Data Protocol (OData) TC
          Issue Type: Bug
          Components: CSDL XML
    Affects Versions: V4.01_OS
            Reporter: Heiko Theissen


To be able to omit a nullable property, it must be given a DefaultValue of null, because the client SHOULD NOT assume a DefaultValue otherwise ([https://docs.oasis-open.org/odata/odata-csdl-xml/v4.01/odata-csdl-xml-v4.01.html#sec_DefaultValue).]

In CSDL JSON, this can be expressed as
{code:json}
{"PropertyName": {"$Nullable": true, "$DefaultValue": null}}
{code}
But in CSDL XML, it cannot be expressed:
{code:xml}
<Property Name="PropertyName" Type="Edm.String" Nullable="true"
  DefaultValue="null" />
{code}
would mean the string "null" as DefaultValue.



--
This message was sent by Atlassian Jira
(v8.3.3#803004)


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