Skip to content

Commit

Permalink
remove backwards compatibility for snake case in objects (#4920)
Browse files Browse the repository at this point in the history
Signed-off-by: Jess Frazelle <[email protected]>
  • Loading branch information
jessfraz authored Jan 6, 2025
1 parent 8a66bbb commit e7cb390
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/wasm-lib/kcl/src/std/helix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub struct HelixData {
/// Number of revolutions.
pub revolutions: f64,
/// Start angle (in degrees).
#[serde(rename = "angleStart", alias = "angle_start")]
#[serde(rename = "angleStart")]
pub angle_start: f64,
/// Is the helix rotation counter clockwise?
/// The default is `false`.
Expand Down
10 changes: 5 additions & 5 deletions src/wasm-lib/kcl/src/std/sketch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -938,13 +938,13 @@ pub enum PlaneData {
/// Origin of the plane.
origin: Box<Point3d>,
/// What should the plane’s X axis be?
#[serde(rename = "xAxis", alias = "x_axis")]
#[serde(rename = "xAxis")]
x_axis: Box<Point3d>,
/// What should the plane’s Y axis be?
#[serde(rename = "yAxis", alias = "y_axis")]
#[serde(rename = "yAxis")]
y_axis: Box<Point3d>,
/// The z-axis (normal).
#[serde(rename = "zAxis", alias = "z_axis")]
#[serde(rename = "zAxis")]
z_axis: Box<Point3d>,
},
}
Expand Down Expand Up @@ -1473,11 +1473,11 @@ pub enum ArcData {
/// Angles and radius with an optional tag.
AnglesAndRadius {
/// The start angle.
#[serde(rename = "angleStart", alias = "angle_start")]
#[serde(rename = "angleStart")]
#[schemars(range(min = -360.0, max = 360.0))]
angle_start: f64,
/// The end angle.
#[serde(rename = "angleEnd", alias = "angle_end")]
#[serde(rename = "angleEnd")]
#[schemars(range(min = -360.0, max = 360.0))]
angle_end: f64,
/// The radius.
Expand Down

0 comments on commit e7cb390

Please sign in to comment.