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)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
struct SerializedScene {
|
||||
camera: Camera,
|
||||
#[serde(default)]
|
||||
|
|
Loading…
Reference in a new issue