Skip to content

Add Schematic support for rust_decimal::Decimal#23

Merged
Kilerd merged 2 commits intomainfrom
decimal-schematic-support
Feb 5, 2026
Merged

Add Schematic support for rust_decimal::Decimal#23
Kilerd merged 2 commits intomainfrom
decimal-schematic-support

Conversation

@Kilerd
Copy link
Copy Markdown
Owner

@Kilerd Kilerd commented Feb 5, 2026

Summary

Add support for rust_decimal::Decimal type in the Schematic trait, enabling OpenAPI schema generation for structs using this decimal type. Maps Decimal to string type with "decimal" format, consistent with existing BigDecimal support.

Changes

  • Add rust_decimal dependency to Cargo.toml
  • Implement Schematic trait for rust_decimal::Decimal
  • Add test case validating schema generation for decimal fields

Test Plan

  • Test compiles without errors
  • Test validates Decimal fields in struct schemas
  • Test covers both required and optional decimal fields

Kilerd and others added 2 commits February 5, 2026 18:22
Implement Schematic trait for rust_decimal::Decimal type to enable OpenAPI schema generation. Maps Decimal to string type with "decimal" format, consistent with existing BigDecimal support.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Add test case validating Decimal schema generation in struct fields, covering both required and optional decimal fields.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@Kilerd Kilerd merged commit 7545a69 into main Feb 5, 2026
12 of 71 checks passed
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