diff --git a/editoast/Cargo.lock b/editoast/Cargo.lock index 8fa1b48c657..57cd1ceeef7 100644 --- a/editoast/Cargo.lock +++ b/editoast/Cargo.lock @@ -1298,6 +1298,7 @@ dependencies = [ "diesel_json", "editoast_common", "editoast_derive", + "editoast_schemas", "enum-map", "enumset", "futures 0.3.30", @@ -1375,6 +1376,16 @@ dependencies = [ "syn 2.0.57", ] +[[package]] +name = "editoast_schemas" +version = "0.1.0" +dependencies = [ + "serde", + "serde_derive", + "serde_json", + "utoipa", +] + [[package]] name = "either" version = "1.10.0" diff --git a/editoast/Cargo.toml b/editoast/Cargo.toml index dede3c1ef8c..b584d534bc5 100644 --- a/editoast/Cargo.toml +++ b/editoast/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" license = "LGPL-3.0" [workspace] -members = [".", "editoast_derive", "editoast_common"] +members = [".", "editoast_derive", "editoast_common", "editoast_schemas"] [workspace.dependencies] rangemap = "1.4.0" @@ -65,6 +65,7 @@ strum_macros = "0.25.3" thiserror = "1.0.56" enum-map = "2.7.3" editoast_derive = { path = "./editoast_derive" } +editoast_schemas = { path = "./editoast_schemas" } editoast_common = { path = "./editoast_common" } mvt = "0.9.0" futures = "0.3.30" diff --git a/editoast/editoast_schemas/Cargo.toml b/editoast/editoast_schemas/Cargo.toml new file mode 100644 index 00000000000..716183088a5 --- /dev/null +++ b/editoast/editoast_schemas/Cargo.toml @@ -0,0 +1,11 @@ +[package] +name = "editoast_schemas" +version = "0.1.0" +edition = "2021" +license = "LGPL-3.0" + +[dependencies] +serde.workspace = true +serde_derive.workspace = true +serde_json.workspace = true +utoipa.workspace = true diff --git a/editoast/editoast_schemas/src/lib.rs b/editoast/editoast_schemas/src/lib.rs new file mode 100644 index 00000000000..8063755472b --- /dev/null +++ b/editoast/editoast_schemas/src/lib.rs @@ -0,0 +1 @@ +// TODO add all the schemas