Skip to content

Allow string values for int and bool properties in STJ path - #7473

Merged
Nigusu-Allehu merged 3 commits into
devfrom
dev-nyenework-allow-string-properties-stj
Jun 12, 2026
Merged

Nigusu-Allehu merged 3 commits into
devfrom
dev-nyenework-allow-string-properties-stj

Conversation

@Nigusu-Allehu

@Nigusu-Allehu Nigusu-Allehu commented Jun 11, 2026 •

Copy link
Copy Markdown
Member

Bug

Fixes: NuGet/Home#14943

Description

Fixes STJ deserialization parity issues that crash when NUGET_USE_SYSTEM_TEXT_JSON_DESERIALIZATION=true and a feed returns numeric or boolean values as strings.

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.

@Nigusu-Allehu
Nigusu-Allehu marked this pull request as ready for review June 11, 2026 19:00
@Nigusu-Allehu
Nigusu-Allehu requested a review from a team as a code owner June 11, 2026 19:00
@Nigusu-Allehu Nigusu-Allehu self-assigned this Jun 11, 2026
@nkolev92

Copy link
Copy Markdown
Member

Is this changing all the places we're deserializing an int or just the ones where we've discovered a problem?

@Nigusu-Allehu

Copy link
Copy Markdown
Member Author

Is this changing all the places we're deserializing an int or just the ones where we've discovered a problem?

The problem found was just in total hits, but I updated other int and bools too that support strings in NSJ.

@Nigusu-Allehu
Nigusu-Allehu merged commit 17b4c0e into dev Jun 12, 2026
20 of 21 checks passed
@Nigusu-Allehu
Nigusu-Allehu deleted the dev-nyenework-allow-string-properties-stj branch June 12, 2026 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

5 participants