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-1503) Annotation of absent complex properties


Heiko Theissen created ODATA-1503:
-------------------------------------

             Summary: Annotation of absent complex properties
                 Key: ODATA-1503
                 URL: https://issues.oasis-open.org/browse/ODATA-1503
             Project: OASIS Open Data Protocol (OData) TC
          Issue Type: Improvement
          Components: JSON Format
            Reporter: Heiko Theissen


According to [OData-JSON|https://docs.oasis-open.org/odata/odata-json-format/v4.01/odata-json-format-v4.01.html#sec_InstanceAnnotations] section 20, a complex property has its instance annotations embedded into the JSON object:
{code:json}
{
 "ComplexProperty": {
  "@ns.term": ...
  "SubProperty": ...
 }
}
{code}
However, if the property is null, it looks different:
{code:json}
{
 "ComplexProperty": null,
 "ComplexProperty@ns.term": ...
}
{code}
How shall the annotation look if the property is absent? So
{code:json}
{
 "ComplexProperty@ns.term": ...
}
{code}
or so?
{code:json}
{
 "ComplexProperty": {
  "@ns.term": ...
 }
}
{code}
Section 20 does not cover the case "When annotating a name/value pair for which the value is absent".

Â(The rationale for annotating absent properties is given in ODATA-1459.)



--
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]