Skip to content

Fix invalid setttings json#11062

Merged
ryzngard merged 1 commit intodotnet:mainfrom
ryzngard:fix_json
Oct 22, 2024
Merged

Fix invalid setttings json#11062
ryzngard merged 1 commit intodotnet:mainfrom
ryzngard:fix_json

Conversation

@ryzngard
Copy link
Copy Markdown
Contributor

woops

@ryzngard ryzngard requested a review from a team as a code owner October 22, 2024 22:07
"store": "VsUserSettingsRegistry",
"path": "Razor\\FormatOnPaste"
}
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😭

CommentHandling = JsonCommentHandling.Skip
};
var document = JsonDocument.Parse(json, options);
Assert.NotNull(document);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding the test.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this doesn't test that the json matches any particular schema but does show that the json itself lacks errors?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yea, I don't want to get in the business of checking a schema we don't own. I just want it to be parsed without throwing

@ryzngard ryzngard enabled auto-merge (squash) October 22, 2024 22:29
@ryzngard ryzngard merged commit c62f6c9 into dotnet:main Oct 22, 2024
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Oct 22, 2024
333fred added a commit to 333fred/razor that referenced this pull request Oct 23, 2024
* upstream/main: (290 commits)
  Add breaking changes document (dotnet#11064)
  Do not extract component into code block (dotnet#11069)
  Fix invalid setttings json (dotnet#11062)
  update MicrosoftSourceBuildIntermediatearcadePackageVersion
  Localized file check-in by OneLocBuild Task: Build definition ID 262: Build ID 2566512
  Localized file check-in by OneLocBuild Task: Build definition ID 262: Build ID 2566512
  Update source-build team references (dotnet#11032)
  Handle EditorRequired *Changed/*Expression parameters (dotnet#11043)
  Localized file check-in by OneLocBuild Task: Build definition ID 262: Build ID 2566213
  Localized file check-in by OneLocBuild Task: Build definition ID 262: Build ID 2566213
  Avoid ambiguous `object` reference in generic component recovery (dotnet#11053)
  Move culture info check (dotnet#11057)
  Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20241015.1
  Fix code actions integration tests
  Add option for format on paste (dotnet#11039)
  Update src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/Components/ComponentDocumentClassifierPass.cs
  Fix merge to 17.12 version
  Update src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/Components/ComponentDocumentClassifierPass.cs
  Ensure model directives are mapped at runtime (dotnet#11007)
  Fix @inherits mapping for fuse (dotnet#10985)
  ...
@ryzngard ryzngard deleted the fix_json branch October 23, 2024 20:45
@phil-allen-msft phil-allen-msft modified the milestones: Next, 17.13 P1 Oct 31, 2024
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.

5 participants