library: render: deserialization: error on unknown
This commit is contained in:
parent
0f6b81e40c
commit
f03880799b
|
@ -299,6 +299,7 @@ impl Scene {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, PartialEq, Deserialize)]
|
#[derive(Debug, PartialEq, Deserialize)]
|
||||||
|
#[serde(deny_unknown_fields)]
|
||||||
struct SerializedScene {
|
struct SerializedScene {
|
||||||
camera: Camera,
|
camera: Camera,
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
|
|
Loading…
Reference in a new issue