Skip to content

Add a STEP schema export option - #1428

Merged
Joe-Spencer merged 2 commits into
mainfrom
codex/step-export-schema-option
Oct 16, 2026
Merged

Joe-Spencer merged 2 commits into
mainfrom
codex/step-export-schema-option

Conversation

@Joe-Spencer

@Joe-Spencer Joe-Spencer commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Add schema to STEP export options with ap203 (edition 2), ap214, and ap242. Omitted JSON, Rust defaults, and builders retain AP242.

Validation: 17 API library tests, package Clippy, and formatting pass. Schema-aware export coverage is in format #918.

Consumed by format #917 and #918. Workspace lint CI currently fails in unchanged modeling-session examples on macro semicolons.

@codecov

codecov Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 33.33333% with 2 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (main@d15e23d). Learn more about missing BASE report.

Files with missing lines Patch % Lines
modeling-cmds/src/format/mod.rs 0.00% 1 Missing ⚠️
modeling-cmds/src/format/step.rs 50.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1428   +/-   ##
=======================================
  Coverage        ?   36.11%           
=======================================
  Files           ?       32           
  Lines           ?     1736           
  Branches        ?        0           
=======================================
  Hits            ?      627           
  Misses          ?     1109           
  Partials        ?        0           
Flag Coverage Δ
unittests 36.11% <33.33%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 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.

Comment thread modeling-cmds/src/format/step.rs Outdated
use crate::{coord, format::OutputFormat3d, shared::FileExportFormat, units::UnitLength};

#[test]
fn schema_defaults_to_ap242() {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

There's no need to test the Rust stdlib derive macros, if you put #[default] on something, it's safe to assume that's the default.

@alteous alteous Oct 14, 2026 •

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.

The same goes for testing (de)serialisation.

@Joe-Spencer
Joe-Spencer marked this pull request as ready for review October 14, 2026 18:38
@Joe-Spencer
Joe-Spencer merged commit 374a020 into main Oct 16, 2026
11 checks passed
@Joe-Spencer
Joe-Spencer deleted the codex/step-export-schema-option branch October 16, 2026 15:57
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