Skip to content

Commit

Permalink
fixup! core: add v2 stdcm endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Erashin committed May 13, 2024
1 parent 971796e commit e6cb4aa
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import fr.sncf.osrd.api.api_v2.standalone_sim.MarginValue
import fr.sncf.osrd.api.api_v2.standalone_sim.MarginValueAdapter
import fr.sncf.osrd.api.api_v2.standalone_sim.PhysicsRollingStockModel
import fr.sncf.osrd.railjson.schema.rollingstock.RJSLoadingGaugeType
import fr.sncf.osrd.railjson.schema.rollingstock.RJSRollingResistance
import fr.sncf.osrd.train.RollingStock.Comfort
import fr.sncf.osrd.utils.json.UnitAdapterFactory
import fr.sncf.osrd.utils.units.Duration
Expand Down Expand Up @@ -63,6 +64,7 @@ class STDCMPathItem(
val stdcmRequestAdapter: JsonAdapter<STDCMRequestV2> =
Moshi.Builder()
.add(MarginValueAdapter())
.add(RJSRollingResistance.adapter)
.addLast(UnitAdapterFactory())
.addLast(KotlinJsonAdapterFactory())
.build()
Expand Down

0 comments on commit e6cb4aa

Please sign in to comment.