[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: [OASIS Issue Tracker] (ODATA-561) odata.type shouldn't require "#" for primitive types
[ https://issues.oasis-open.org/browse/ODATA-561?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael Pizzo updated ODATA-561: -------------------------------- Summary: odata.type shouldn't require "#" for primitive types (was: odata.type shouldn't require "#") > odata.type shouldn't require "#" for primitive types > ---------------------------------------------------- > > Key: ODATA-561 > URL: https://issues.oasis-open.org/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 > Labels: AdoptionBlocker, GoodIdea > Fix For: V4.01_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 was sent by Atlassian JIRA (v6.2.2#6258)
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]