Skip to content

Commit 521aef4

Browse files
committed
Skip serializing if draftAngle is None
1 parent 0f7130e commit 521aef4

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

modeling-cmds/openapi/api.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2635,7 +2635,6 @@
26352635
"draft_angle": {
26362636
"nullable": true,
26372637
"description": "What draft angle should be used in this extrusion? Negative values indicate an outward draft, while positive values indicate an inward draft",
2638-
"default": null,
26392638
"allOf": [
26402639
{
26412640
"$ref": "#/components/schemas/Angle"

modeling-cmds/src/def_enum.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,9 @@ define_modeling_cmd_enum! {
135135
/// How far off the plane to extrude
136136
pub distance: LengthUnit,
137137
/// What draft angle should be used in this extrusion?
138-
/// Negative values indicate an outward draft,
138+
/// Negative values indicate an outward draft,
139139
/// while positive values indicate an inward draft
140-
#[serde(default)]
140+
#[serde(default, skip_serializing_if = "Option::is_none")]
141141
pub draft_angle: Option<Angle>,
142142
/// Which IDs should the new faces have?
143143
/// If this isn't given, the engine will generate IDs.

0 commit comments

Comments
 (0)