add max-min to schemars (#4005)

Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
Jess Frazelle
2024-09-26 16:33:49 -07:00
committed by GitHub
parent 20777a60aa
commit 9d0f06b58f
4 changed files with 18 additions and 7 deletions

View File

@ -1501,9 +1501,11 @@ pub enum ArcData {
AnglesAndRadius {
/// The start angle.
#[serde(rename = "angleStart", alias = "angle_start")]
#[schemars(range(min = -360.0, max = 360.0))]
angle_start: f64,
/// The end angle.
#[serde(rename = "angleEnd", alias = "angle_end")]
#[schemars(range(min = -360.0, max = 360.0))]
angle_end: f64,
/// The radius.
radius: f64,