[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: [OASIS Issue Tracker] (ODATA-881) Add support for Edm.Untyped
[ https://issues.oasis-open.org/browse/ODATA-881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=61791#comment-61791 ] Matthew Borges commented on ODATA-881: -------------------------------------- How would we expect clients to handle deltas for an Edm.Untyped property? Would such a property be dependent of the format used (i.e. a JSON representation and ATOM representation of the same Edm.Untyped property are different even if they encode the same information)? I think we want the content to be format independent so do we need to clarify that? > Add support for Edm.Untyped > --------------------------- > > Key: ODATA-881 > URL: https://issues.oasis-open.org/browse/ODATA-881 > Project: OASIS Open Data Protocol (OData) TC > Issue Type: Bug > Components: OData CSDL, OData JSON CSDL > Affects Versions: V4.0_ERRATA02 > Environment: [Proposed] > Reporter: Michael Pizzo > Labels: AdoptionBlocker, ready-for-vote > Fix For: V4.01_WD01 > > > We see a lot of scenarios where people are building REST services that return JSON payloads, but the JSON they need or want to generate is not supported by OData (for example, a mixed array or an array of arrays). This payload still has structure, it just can't necessarily be described by OData CSDL. > For such payloads we could add an Edm.Untyped data type. Services could use Edm.Untyped to advertise that there was a property of a particular name present, but there is no type to describe the structure of the schema. It is essentially treated as an open property. > The value of an Edm.Untyped property may be a primitive value, a structural value, or a collection. If a collection, it may contain any combination of primitive values, structural values, or collections (this is the only place a collection can contain a collection or a collection can contain a mix of primitive values, structural values, or collections). > Edm.Untyped could also be used within a payload to specify that the current structured object has no declared type. It is either an anonymous structured (i.e., complex) type or an array. > All structured dynamic properties, and all children of an Edm.Untyped property, are assumed to be untyped unless they are annotated with the "@odata.type" term, in which case they must conform to the type described by the annotation. -- 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]