Skip to content

Conversation

@kejadlen
Copy link
Collaborator

@kejadlen kejadlen commented Jan 21, 2026

Upgrades schemars from 0.8 to 1.2 and adapts to API changes.

API changes:

  • schemars::gen module renamed to schemars::generate
  • option_nullable setting removed—schemars 1.x generates type: ["string", "null"] for Option types natively

Schema compatibility fixes:

  • Added skip_serializing_if to #[schemars(skip)] fields that were serializing to null but falling under additionalProperties: { type: "string" }
  • Removed deny_unknown_fields from ReportDestinationTemplates which conflicted with its flattened BTreeMap

Test fix:

  • Added mutex to serialize environment variable tests in directories.rs to prevent flaky failures from test parallelism

Assisted-by: Claude Opus 4.5 via Claude Code

@kejadlen kejadlen force-pushed the alpha/push-tmorzztppuux branch 2 times, most recently from 615d621 to 6d4a36e Compare January 21, 2026 00:28
Assisted-by: Claude Opus 4.5 via Claude Code
@kejadlen kejadlen force-pushed the alpha/push-tmorzztppuux branch from 6d4a36e to dafdf31 Compare January 21, 2026 00: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.

3 participants