-
Notifications
You must be signed in to change notification settings - Fork 49
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
[BUG] IEnumerable<int?>
get mapped incorrectly.
#380
Labels
Comments
DumboJetEngine
pushed a commit
to DumboJetEngine/opensearch-net
that referenced
this issue
Jan 8, 2024
Closed
DumboJetEngine
added a commit
to DumboJetEngine/opensearch-net
that referenced
this issue
Jan 8, 2024
Closed
DumboJetEngine
added a commit
to DumboJetEngine/opensearch-net
that referenced
this issue
Jan 8, 2024
Signed-off-by: Z <[email protected]>
Closed
DumboJetEngine
added a commit
to DumboJetEngine/opensearch-net
that referenced
this issue
Jan 8, 2024
Signed-off-by: Kostas <[email protected]>
DumboJetEngine
added a commit
to DumboJetEngine/opensearch-net
that referenced
this issue
Jan 8, 2024
Signed-off-by: Kostas <[email protected]>
DumboJetEngine
added a commit
to DumboJetEngine/opensearch-net
that referenced
this issue
Jan 8, 2024
Signed-off-by: Kostas <[email protected]>
Merged
DumboJetEngine
added a commit
to DumboJetEngine/opensearch-net
that referenced
this issue
Jan 8, 2024
…tion. Signed-off-by: Kostas <[email protected]>
DumboJetEngine
added a commit
to DumboJetEngine/opensearch-net
that referenced
this issue
Jan 10, 2024
Signed-off-by: Kostas <[email protected]>
DumboJetEngine
added a commit
to DumboJetEngine/opensearch-net
that referenced
this issue
Jan 10, 2024
Signed-off-by: Kostas <[email protected]>
DumboJetEngine
added a commit
to DumboJetEngine/opensearch-net
that referenced
this issue
Jan 10, 2024
Signed-off-by: Kostas <[email protected]>
DumboJetEngine
added a commit
to DumboJetEngine/opensearch-net
that referenced
this issue
Jan 11, 2024
Signed-off-by: Kostas <[email protected]> (cherry picked from commit 14c8af6)
DumboJetEngine
added a commit
to DumboJetEngine/opensearch-net
that referenced
this issue
Jan 12, 2024
Signed-off-by: Kostas <[email protected]> (cherry picked from commit 14c8af6)
Xtansia
pushed a commit
that referenced
this issue
Jan 12, 2024
Signed-off-by: Kostas <[email protected]> (cherry picked from commit 14c8af6) Signed-off-by: DumboJetEngine <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is the bug?
When your document contains a field of type
IEnumerable<int?>
(or any otherIEnumerable<Nullable<T>>
apparently) it gets mapped incorrectly when auto-mapping. Instead of an integer type, an object type gets created, that contains the nullable properties.When mapping a nullable object property like
public int? Value { get; set; }
the mapper correctly maps this field into an integer.But when you map an array of nullable objects like
public IEnumerable<int?> Values { get; set; }
then it maps the nullable class members instead, like this:What is the expected behavior?
A mapping for an integer gets created instead.
What is your host/environment?
Windows 11
OpenSearch.Client nuget version 1.5.0
OpenSearch Version: 2.9.0
OpenSearch Security Version: 2.9.0.0
The text was updated successfully, but these errors were encountered: