Bug: Any non-string value in GraphError.Path
will cause the GraphService to throw a ShopifyJsonParseException
#1152
Labels
Milestone
The default System.Text.Json deserializer does not like to coerce integers to strings like Newtonsoft.Json does. It prefers to throw an exception instead.
Example problematic json:
The integer
0
in"path": ["orders", "nodes", 0, "lineItems"]
will make System.Text.Json throw a JsonException, which ShopifySharp catches and wraps up in a ShopifyJsonParseException.Related to #1149, the SystemJsonDeserializer needs to ease up on its strict parsing rules for these properties that Shopify doesn't document.
The text was updated successfully, but these errors were encountered: