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

Prevents automatic inference of properties with numeric characters defined as strings. e.g {"age":"28"}" #3190

Merged

Conversation

timayabi2020
Copy link
Contributor

Fixes #3187

This PR ensures that the original type of values is maintained when processing JSON objects. A PreserveStringConverter class is added to prevent types from being automatically inferred to the most appropriate type for a Json value.
This mostly happens with numeric strings. e.g {"age":"28"} is converted to {"age":28}.

image

@timayabi2020 timayabi2020 requested a review from a team as a code owner February 26, 2025 13:51
@timayabi2020 timayabi2020 linked an issue Feb 26, 2025 that may be closed by this pull request
Ndiritu
Ndiritu previously approved these changes Feb 27, 2025
@timayabi2020 timayabi2020 merged commit 65b8e76 into dev Mar 7, 2025
2 of 5 checks passed
@timayabi2020 timayabi2020 deleted the 3187-new-mgsitelistitem-field-format-issue-intstr-with-2261 branch March 7, 2025 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New-MgSiteListItem field format issue int/str with 2.26.1
3 participants