From 93244c458fb2ca4ffc3c26cf85df74a3a35ed6b4 Mon Sep 17 00:00:00 2001 From: Adam Chalmers Date: Fri, 22 May 2026 17:26:03 -0500 Subject: [PATCH] Skip serializing if draftAngle is None --- modeling-cmds/openapi/api.json | 1 - modeling-cmds/src/def_enum.rs | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/modeling-cmds/openapi/api.json b/modeling-cmds/openapi/api.json index 1b5017a4..88cac7db 100644 --- a/modeling-cmds/openapi/api.json +++ b/modeling-cmds/openapi/api.json @@ -2635,7 +2635,6 @@ "draft_angle": { "nullable": true, "description": "What draft angle should be used in this extrusion? Negative values indicate an outward draft, while positive values indicate an inward draft", - "default": null, "allOf": [ { "$ref": "#/components/schemas/Angle" diff --git a/modeling-cmds/src/def_enum.rs b/modeling-cmds/src/def_enum.rs index f86c7175..34c28639 100644 --- a/modeling-cmds/src/def_enum.rs +++ b/modeling-cmds/src/def_enum.rs @@ -135,9 +135,9 @@ define_modeling_cmd_enum! { /// How far off the plane to extrude pub distance: LengthUnit, /// What draft angle should be used in this extrusion? - /// Negative values indicate an outward draft, + /// Negative values indicate an outward draft, /// while positive values indicate an inward draft - #[serde(default)] + #[serde(default, skip_serializing_if = "Option::is_none")] pub draft_angle: Option, /// Which IDs should the new faces have? /// If this isn't given, the engine will generate IDs.