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-561) odata.type shouldn't require "#" for primitive types

    [ https://issues.oasis-open.org/browse/ODATA-561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=62993#comment-62993 ] 

Michael Pizzo commented on ODATA-561:

For 4.01 payloads, should we say that they SHOULD NOT or MUST NOT prefix the primitive type name with a hash?

> 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: Simplified Payload;[Proposed]
>            Reporter: Michael Pizzo
>            Assignee: 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

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