Skip to content

Commit 9ddc06c

Browse files
theocrsbyounesschrifi
authored andcommitted
editoast: add weight documentation
Signed-off-by: theocrsb <theo_crosbie@yahoo.fr> Signed-off-by: Youness CHRIFI ALAOUI <youness.chrifi@gmail.com>
1 parent 4e1f461 commit 9ddc06c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

editoast/openapi.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -8107,6 +8107,7 @@ components:
81078107
format: int32
81088108
description: Importance of the operational point
81098109
nullable: true
8110+
maximum: 100
81108111
minimum: 0
81118112
description: Operational points along the path
81128113
nullable: true

editoast/src/core/path_properties.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ pub struct OperationalPointOnPath {
7979
/// Distance from the beginning of the path in mm
8080
position: u64,
8181
/// Importance of the operational point
82-
#[schema(required)]
82+
#[schema(required, minimum = 0, maximum = 100)]
8383
weight: Option<u8>,
8484
}
8585

0 commit comments

Comments
 (0)