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

Automatically downcase Metafield resource type strings #790

Merged
merged 3 commits into from
Oct 6, 2022
Merged

Conversation

nozzlegear
Copy link
Owner

@nozzlegear nozzlegear commented Oct 6, 2022

This pull request will automatically downcase the resource type strings used by the MetafieldService class. These strings are case sensitive and must be downcased. If they're not downcased, Shopify will return a 404, causing ShopifySharp to throw an exception.

"orders" => would work
"Orders" => 404
"ORDERS" => 404

After this change, all resource strings will be automatically downcased. See #789 and #788.

@nozzlegear nozzlegear linked an issue Oct 6, 2022 that may be closed by this pull request
@nozzlegear nozzlegear merged commit 54f84c0 into master Oct 6, 2022
@nozzlegear nozzlegear deleted the fix-789 branch October 6, 2022 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Automatically downcase the resource type string for metafields
1 participant