New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Untyped JSON #248

Closed
kumarseetharaman opened this Issue Jun 24, 2015 · 4 comments

Comments

Projects
None yet
6 participants
@kumarseetharaman

kumarseetharaman commented Jun 24, 2015

Definition of opentype extension:

<EntityType Name="OpenTypeExtension" OpenType="true">
      <Key><PropertyRef Name="Key"/></Key>
      <Property Name=“Key" Type="Edm.String"/>
</EntityType>

Support needed for the following cases:

Case 1:

POST https://{serviceroot}/Entities('Id')/extensions
{
   @odata.type: "OpenTypeExtension",
   "Key" : "Value1",
   "InlineComplexType" :
    {
            “Prop1": "Val1",
        “Prop2": "Val2",
                ...
    },  
}

Case 2.

POST https://{serviceroot}/Entities('Id')/extensions
{
   @odata.type: "OpenTypeExtension",
   "Key" : "Value1",   
   "ArrayOfComplexTypes" : [
    {
            "Street": "123 Main street",
        "State": "WA",
            "Zip": "98001"
    },
            {
             "Street": "345 Elm street",
         "State": "LA",
             "Zip": "90001"
    },
            {
             "Street": "789 Cedar street",
         "State": "LA",
             "Zip": "90002"
    }
      ]
}
@kumarseetharaman

This comment has been minimized.

kumarseetharaman commented Jun 24, 2015

Definition got cut off for some reason - including it:
Definition of opentype extension:

<EntityType Name="OpenTypeExtension" OpenType="true">
      <Key><PropertyRef Name="Key"/></Key>
      <Property Name=“Key" Type="Edm.String"/>
</EntityType>

@congysu congysu added this to the 6.14 milestone Jun 25, 2015

@congysu

This comment has been minimized.

Contributor

congysu commented Aug 21, 2015

This is for untyped json support.

Task list:

  • Add ODataUntypedValue to object model #315
  • Write untyped json property for entry #317
  • Write untyped json property for feed, complex type #319
  • Optional - Add an untype json property in a feed #318
  • Read untyped json property for entry #320
  • Read untyped json property for feed, complex type #321

@congysu congysu assigned challenh and unassigned cxlove Nov 20, 2015

@congysu congysu removed this from the 6.14 milestone Nov 20, 2015

@congysu congysu added this to the 6.15 milestone Dec 15, 2015

@zlatko-michailov

This comment has been minimized.

Contributor

zlatko-michailov commented Dec 22, 2015

Please assign #315 and #317 to me.

#319 and #318 should work, but we need to write tests in order to close them.

@challenh challenh closed this Jun 24, 2016

@challenh challenh removed the in-progress label Jun 24, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment