Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

editoast: add weight documentation #10344

Merged
merged 1 commit into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading