Skip to content

Remove JsonSchema.NET - #7785

Merged
rosebyte merged 1 commit into
dotnet:mainfrom
rosebyte:rosebyte-jsonschema-upgrade-rationale
Oct 13, 2026
Merged

rosebyte merged 1 commit into
dotnet:mainfrom
rosebyte:rosebyte-jsonschema-upgrade-rationale

Conversation

@rosebyte

Copy link
Copy Markdown
Member

Remove the unused JsonSchema.Net reference from Microsoft.ML.Samples, together with its central package declaration in Directory.Packages.props and version property in eng/Versions.props.

Removing the reference also drops JsonPointer.Net, Json.More.Net and Humanizer.Core from the samples’ dependency graph.

Rationale

The former GenAI consumers were removed in dotnet/machinelearning#7738. The samples project was the only remaining consumer and does not use the package’s APIs. No replacement implementation is needed.

@codecov

codecov Bot commented Oct 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.95%. Comparing base (66cd5ad) to head (30b915e).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7785      +/-   ##
==========================================
- Coverage   70.26%   69.95%   -0.31%     
==========================================
  Files        1419     1419              
  Lines      272603   272603              
  Branches    27940    27562     -378     
==========================================
- Hits       191544   190703     -841     
- Misses      73643    73706      +63     
- Partials     7416     8194     +778     
Flag Coverage Δ
Debug 69.95% <ø> (-0.31%) ⬇️
production 64.14% <ø> (-0.37%) ⬇️
test 89.69% <ø> (-0.11%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 372 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@matouskozak
matouskozak requested a balanced review from Copilot October 13, 2026 10:12
@rosebyte
rosebyte merged commit 272f2fb into dotnet:main Oct 13, 2026
28 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The dependency removal is complete, consistent, and leaves no remaining references.

0 open findings

What changed in this PR

Removes the unused JsonSchema.NET dependency from ML.NET samples and central package management.

Changes:

  • Removes the samples project package reference.
  • Removes the central package declaration and version property.
File Description
eng/​Versions.props Removes the unused version property.
Directory.Packages.props Removes central package registration.
docs/​samples/​Microsoft.ML.Samples/​Microsoft.ML.Samples.csproj Removes the package reference.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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.

3 participants