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

Bogus EntitySetPath error #1455

Closed
mikepizzo opened this issue Apr 29, 2019 · 0 comments
Closed

Bogus EntitySetPath error #1455

mikepizzo opened this issue Apr 29, 2019 · 0 comments

Comments

@mikepizzo
Copy link
Member

When defining a function or an action, the optional EntitySetPath specifies the collection where any returned entities live. If the return type is a collection of entities, the EntitySetPath (if specified) must reference a collection -- if the return type is a single entity, then the path will typically be a collection but may be a singleton or single-valued containment nav prop. Currently, validating a model throws an invalid error if the return type is a single entity and the entitysetpath indicates a collection.

Assemblies affected

OData .Net lib 7.5.x

Reproduce steps

The simplest set of steps to reproduce the issue. If possible, reference a commit that demonstrates the issue.

Expected result

Validation would succeed with no errors.

Actual result

"Error: The operation 'A1' entity set path was determined to be a collection but the return type is not a collection"

mikepizzo added a commit to mikepizzo/odata.net that referenced this issue Apr 29, 2019
mikepizzo added a commit to mikepizzo/odata.net that referenced this issue Apr 29, 2019
@xuzhg xuzhg closed this as completed in edb4e91 May 1, 2019
KanishManuja-MS pushed a commit to KanishManuja-MS/odata.net that referenced this issue Jun 5, 2019
xuzhg pushed a commit that referenced this issue Jun 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant