Commit 7acb8d73 authored by Emmanuel Raviart's avatar Emmanuel Raviart

Don't fail when `programme` is a map instead of a sequence of maps.

parent 9cee84be
Pipeline #97342 failed with stage
in 1 minute and 10 seconds
......@@ -232,7 +232,7 @@ pub struct PointeurFragmentTexte {
#[derive(Debug, Deserialize, GraphQLObject)]
#[serde(deny_unknown_fields)]
pub struct Programme {
#[serde(rename = "programme")]
#[serde(deserialize_with = "map_to_vec", rename = "programme")]
pub programme: Vec<ProgrammeObject>,
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment