From f03880799bc73bbd716eb626e7e0188f02c67e6f Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Thu, 26 Mar 2020 18:20:30 +0100 Subject: [PATCH] library: render: deserialization: error on unknown --- pathtracer/src/render/scene.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/pathtracer/src/render/scene.rs b/pathtracer/src/render/scene.rs index e543389..678a5b9 100644 --- a/pathtracer/src/render/scene.rs +++ b/pathtracer/src/render/scene.rs @@ -299,6 +299,7 @@ impl Scene { } #[derive(Debug, PartialEq, Deserialize)] +#[serde(deny_unknown_fields)] struct SerializedScene { camera: Camera, #[serde(default)]