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

Add argument to parser to allow trailing comma in json. #11086

Merged
merged 3 commits into from
Dec 10, 2024

Conversation

sebasgomez238
Copy link
Contributor

@sebasgomez238 sebasgomez238 commented Dec 9, 2024

Fixes #11050. The error was being thrown when trying to parse a JSON file with trailing commas. This PR adds an argument to the parser to allow trailing commas in JSON as well as the corresponding tests in the Updater and the Discovery.

@sebasgomez238 sebasgomez238 requested a review from a team as a code owner December 9, 2024 15:35
@github-actions github-actions bot added the L: dotnet:nuget NuGet packages via nuget or dotnet label Dec 9, 2024
@sebasgomez238 sebasgomez238 marked this pull request as draft December 9, 2024 15:39
@sebasgomez238 sebasgomez238 marked this pull request as ready for review December 9, 2024 21:29
@randhircs randhircs force-pushed the users/segomez/allow-trailing-comma-json-parser branch from 63a01c5 to b681567 Compare December 10, 2024 16:20
@randhircs randhircs merged commit 985149c into main Dec 10, 2024
70 checks passed
@randhircs randhircs deleted the users/segomez/allow-trailing-comma-json-parser branch December 10, 2024 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L: dotnet:nuget NuGet packages via nuget or dotnet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NuGet dependency discovery fails with unexpected global.json content
4 participants