Skip to content

Commit

Permalink
editoast: add weight documentation
Browse files Browse the repository at this point in the history
Signed-off-by: theocrsb <[email protected]>
Signed-off-by: Youness CHRIFI ALAOUI <[email protected]>
  • Loading branch information
theocrsb authored and younesschrifi committed Jan 15, 2025
1 parent 4e1f461 commit 9ddc06c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions editoast/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8107,6 +8107,7 @@ components:
format: int32
description: Importance of the operational point
nullable: true
maximum: 100
minimum: 0
description: Operational points along the path
nullable: true
Expand Down
2 changes: 1 addition & 1 deletion editoast/src/core/path_properties.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ pub struct OperationalPointOnPath {
/// Distance from the beginning of the path in mm
position: u64,
/// Importance of the operational point
#[schema(required)]
#[schema(required, minimum = 0, maximum = 100)]
weight: Option<u8>,
}

Expand Down

0 comments on commit 9ddc06c

Please sign in to comment.