Repository navigation
fix: add explicit JSON property mappings for SQRLShipItRequest model - #49980
Merged
Merged
Conversation
VerteDinde
approved these changes
Mar 2, 2026
|
Release Notes Persisted
|
Member
|
Nice analysis, thanks @nmggithub! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Change
This should resolve #49977. As per #49978, we may defer this for 42.
As posited in the original issue, #38437 is the change that broke this. To walk through the root cause and my proposed fix:
1.x-maintenancebranch).masterbranch).+JSONKeyPathsByPropertyKey.+JSONKeyPathsByPropertyKey, which worked under v1 but no longer works under v2.SQRLShipItRequestcalls[super initWithDictionary:error:], an empty dictionary is returned (with no properties, since Mantle is unaware of any of them). This then trips the validation checks later in that method.Squirrel.Macto explicitly define the expected properties in+JSONKeyPathsByPropertyKey.I expect this to work, but I have not fully tested it end-to-end as I lack a good reproduction setup for this specific update flow. Any help on that front would be greatly appreciated.
Additionally, as mentioned above, I'm ok with deferring this to 42 if need be.
Checklist
testedthis PRnpm testpassesRelease Notes
Notes: Fixed dependency issue that caused Squirrel.Mac updates to fail.