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.