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

Allow arrays/collections to be null #1933

Open
ralfhandl opened this issue May 13, 2024 · 2 comments
Open

Allow arrays/collections to be null #1933

ralfhandl opened this issue May 13, 2024 · 2 comments

Comments

@ralfhandl
Copy link
Contributor

ralfhandl commented May 13, 2024

Currently collections can only be empty, they cannot be null.

Adding null for collections would allow expressing the subtle difference between "empty wallet" and "no wallet".

Superset of #290

@HeikoTheissen
Copy link
Contributor

This affects collections as

@HeikoTheissen
Copy link
Contributor

For collection-valued types, Nullable="true" means that the collection can contain null values. A new attribute CollectionNullable="true" would be needed to express that the entire collection may be null.

If an unbound function has two overloads

  • <Parameter Name="P" Type="Edm.String" Nullable="true"/>
  • <Parameter Name="P" Type="Collection(Edm.String)" Nullable="true" CollectionNullable="true"/>

which overload would then be chosen for the invocation ns.func(P=null)?

@ralfhandl ralfhandl moved this to Open in OData TC May 27, 2024
@ralfhandl ralfhandl self-assigned this Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Open
Development

No branches or pull requests

2 participants