Skip to content

feat!: upgrade schemars to 1.2, bump to v0.4.0#6

Merged
adlio merged 1 commit intomainfrom
feat/schemars-v1
Feb 24, 2026
Merged

feat!: upgrade schemars to 1.2, bump to v0.4.0#6
adlio merged 1 commit intomainfrom
feat/schemars-v1

Conversation

@adlio
Copy link
Owner

@adlio adlio commented Feb 24, 2026

Summary

  • Upgrades schemars from 0.8 to 1.2 (JSON Schema Draft 2020-12)
  • Renames ToolInputSchema::from_root_schema() to from_schema() accepting &schemars::Schema (the RootSchema type was removed in schemars 1.0)
  • Removes lookup for legacy definitions key (schemars 1.x only uses $defs)
  • Bumps workspace version to 0.4.0

Breaking changes

  • ToolInputSchema::from_root_schema(&schemars::schema::RootSchema)ToolInputSchema::from_schema(&schemars::Schema) (behind schemars feature flag in mixtape-anthropic-sdk)

Test plan

  • cargo check --workspace --all-features passes
  • All 1427 tests pass (cargo test --workspace --all-features)
  • All #[derive(JsonSchema)] usage (87+ structs/enums) compiles without changes
  • schema_for!() in mixtape-core::Tool::input_schema() works with new return type

BREAKING CHANGE: `ToolInputSchema::from_root_schema()` renamed to
`from_schema()` and now accepts `&schemars::Schema` instead of
`&schemars::schema::RootSchema`, which was removed in schemars 1.0.

Schemars 1.x generates JSON Schema Draft 2020-12 by default (using
`$defs` instead of `definitions`). All `#[derive(JsonSchema)]` usage
across the workspace is compatible without changes.

Bumps workspace version to 0.4.0.
@codecov
Copy link

codecov bot commented Feb 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.61%. Comparing base (8fb9f91) to head (f3055c7).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main       #6   +/-   ##
=======================================
  Coverage   88.61%   88.61%           
=======================================
  Files         101      101           
  Lines       23022    23019    -3     
=======================================
- Hits        20401    20399    -2     
+ Misses       2621     2620    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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

@adlio adlio merged commit f9b4972 into main Feb 24, 2026
14 checks passed
@adlio adlio deleted the feat/schemars-v1 branch February 24, 2026 23:34
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.

1 participant