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] Created: (ODATA-561) odata.type shouldn't require "#"


odata.type shouldn't require "#"
--------------------------------

                 Key: ODATA-561
                 URL: http://tools.oasis-open.org/issues/browse/ODATA-561
             Project: OASIS Open Data Protocol (OData) TC
          Issue Type: Improvement
          Components: OData JSON Format
    Affects Versions: V4.0_COS
         Environment: [Proposed]
            Reporter: Michael Pizzo
            Priority: Minor
             Fix For: V4.1_WD01


In JSON we currently require primitive types to be written as fragments, i.e.:

"@odata.type":"#Double"

The hash is not really required in this case, and doesn't really make sense as it is not a reference within the metadata document. Note that, in Atom, it is written without the hash, as in:

<metadata:Salary metadata:type="Double">50000</metadata:Salary>

In order not to make a breaking change for JSON we should continue to allow, but not require, the "#" for primitive types.

Perhaps even add to an implementation note for 4.0 that clients should support primitive types without the "#".

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://tools.oasis-open.org/issues/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


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