Skip to content

Commit

Permalink
editoast: move rs railjson version to schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
Wadjetz committed Apr 8, 2024
1 parent b6a6330 commit d046886
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions editoast/editoast_schemas/src/rolling_stock/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ editoast_common::schemas! {
RollingStockLiveryMetadata,
}

pub const ROLLING_STOCK_RAILJSON_VERSION: &str = "3.2";

#[derive(Debug, Clone, PartialEq, Deserialize, Serialize, ToSchema)]
pub struct RollingStock {
pub id: i64,
Expand Down
2 changes: 0 additions & 2 deletions editoast/src/schema/rolling_stock/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,3 @@ editoast_common::schemas! {
editoast_schemas::rolling_stock::schemas(),
light_rolling_stock::schemas(),
}

pub const ROLLING_STOCK_RAILJSON_VERSION: &str = "3.2";
2 changes: 1 addition & 1 deletion editoast/src/views/rolling_stocks/rolling_stock_form.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use derivative::Derivative;
use editoast_schemas::rolling_stock::RollingStockCommon;
use editoast_schemas::rolling_stock::RollingStockMetadata;
use editoast_schemas::rolling_stock::ROLLING_STOCK_RAILJSON_VERSION;
use serde_derive::Deserialize;
use serde_derive::Serialize;
use utoipa::ToSchema;
Expand All @@ -11,7 +12,6 @@ use crate::modelsv2::rolling_stock_model::validate_rolling_stock;
use crate::modelsv2::Changeset;
use crate::modelsv2::Model;
use crate::modelsv2::RollingStockModel;
use crate::schema::rolling_stock::ROLLING_STOCK_RAILJSON_VERSION;

#[derive(Debug, Clone, Deserialize, Serialize, ToSchema, Validate, Derivative)]
#[derivative(PartialEq)]
Expand Down

0 comments on commit d046886

Please sign in to comment.