Skip to content

Commit

Permalink
fixup! editoast: remove none from margin values
Browse files Browse the repository at this point in the history
  • Loading branch information
flomonster committed Jul 18, 2024
1 parent b781dc4 commit e40515d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions editoast/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3025,9 +3025,8 @@ paths:
$ref: '#/components/schemas/Comfort'
margin:
type: string
description: Can be a percentage `X%`, a time in minutes per 100 kilometer `Xmin/100km` or `None`
description: Can be a percentage `X%`, a time in minutes per 100 kilometer `Xmin/100km`
example:
- None
- 5%
- 2min/100km
nullable: true
Expand Down Expand Up @@ -9854,9 +9853,8 @@ components:
$ref: '#/components/schemas/Comfort'
margin:
type: string
description: Can be a percentage `X%`, a time in minutes per 100 kilometer `Xmin/100km` or `None`
description: Can be a percentage `X%`, a time in minutes per 100 kilometer `Xmin/100km`
example:
- None
- 5%
- 2min/100km
nullable: true
Expand Down
4 changes: 2 additions & 2 deletions editoast/src/views/v2/timetable/stdcm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ pub struct STDCMRequestPayload {
/// available at least that many milliseconds after its passage.
#[serde(default)]
time_gap_after: u64,
/// Can be a percentage `X%`, a time in minutes per 100 kilometer `Xmin/100km` or `None`
/// Can be a percentage `X%`, a time in minutes per 100 kilometer `Xmin/100km`
#[serde(default)]
#[schema(value_type = Option<String>, example = json!(["None", "5%", "2min/100km"]))]
#[schema(value_type = Option<String>, example = json!(["5%", "2min/100km"]))]
margin: Option<MarginValue>,
}

Expand Down
2 changes: 1 addition & 1 deletion front/src/common/api/generatedEditoastApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1748,7 +1748,7 @@ export type PostV2TimetableByIdStdcmApiArg = {
id: number;
body: {
comfort: Comfort;
/** Can be a percentage `X%`, a time in minutes per 100 kilometer `Xmin/100km` or `None` */
/** Can be a percentage `X%`, a time in minutes per 100 kilometer `Xmin/100km` */
margin?: string | null;
/** By how long we can shift the departure time in milliseconds
Deprecated, first step data should be used instead */
Expand Down

0 comments on commit e40515d

Please sign in to comment.