Skip to content
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
Closed

Writing undeclared untyped properties to open types fails. #1009

mikepizzo opened this issue Dec 5, 2017 · 1 comment

Comments

@mikepizzo
Copy link
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
Copy link
Member Author

Fixed by change #1010.

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

No branches or pull requests

2 participants