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

Writing undeclared untyped properties to open types fails. #1009

Closed
mikepizzo opened this Issue Dec 5, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@mikepizzo
Member

mikepizzo commented Dec 5, 2017

Writing an undeclared untyped property to an open entity fails

Assemblies affected

ODL V7

Reproduce steps

  1. Define an open entity type
  2. Attempt to write an undefined property:
    new ODataProperty { Name = "UndeclaredProperty", Value = new ODataUntypedValue { RawValue = ""rawValue"" }) };

Expected result

The undeclared property should be written since the type is open

Actual result

Error Message "The property 'OpenCollectionNoType' does not exist on type 'microsoft.graph.S1E2'. Make sure to only use property names that are defined by the type or mark the type as open type."

Additional detail

This works for undefined typed properties in an open entity type, it's only an issue for untyped properties.
This worked in ODL V6 and is blocking folks from moving to ODL V7.

@mikepizzo mikepizzo added the regression label Dec 5, 2017

@mikepizzo mikepizzo referenced this issue Dec 5, 2017

Merged

Fix property validation issues #1010

2 of 2 tasks complete

@robward-ms robward-ms added the P2 label Dec 18, 2017

@mikepizzo

This comment has been minimized.

Member

mikepizzo commented Jan 9, 2018

Fixed by change #1010.

@mikepizzo mikepizzo closed this Jan 9, 2018

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