Skip to content

Commit cf771fa

Browse files
committed
schemas: provide a default value for ETCS brake parameters
Signed-off-by: Jean SIMARD <woshilapin@tuziwo.info>
1 parent ddc52f5 commit cf771fa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

python/osrd_schemas/osrd_schemas/rolling_stock.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,9 @@ class RollingStock(BaseModel, extra="forbid"):
257257
description="The constant gamma braking coefficient used when NOT circulating under "
258258
"ETCS/ERTMS signaling system in m/s^2"
259259
)
260-
etcs_brake_params: Optional[EtcsBrakeParams] = Field(description="Braking parameters for ERTMS ETCS Level 2")
260+
etcs_brake_params: Optional[EtcsBrakeParams] = Field(
261+
description="Braking parameters for ERTMS ETCS Level 2", default=None
262+
)
261263
inertia_coefficient: NonNegativeFloat = Field(description="The coefficient of inertia")
262264
mass: NonNegativeFloat = Field(description="The mass of the train, in kg")
263265
rolling_resistance: RollingResistance = Field(description="The formula to use to compute rolling resistance")

0 commit comments

Comments
 (0)