dotnet / dotnet/efcore

Query/JSON: throw better exception when expecting array of objects, but the JSON represents a single object

Open
#33,576 1 comment 0 reactions 0 assignees View on GitHub
area-json customer-reported
Dominant language
C#
Stars
14.8k
Forks
3.4k
PR merge metrics
PR metrics pending

Description

pointed out by @aldrashan here: https://github.com/dotnet/efcore/pull/33101#issuecomment-2056718437

Basically when the mismatch happens we throw `Invalid token type: 'StartObject'`. We should throw a better exception.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.