Use #[serde(deny_unknown_fields)]
Walther opened this issue · 0 comments
Walther commented
Currently, if you have a typo in your scene file json, you can get default fallback parameters for the objects. This can lead to frustration, when modifying parameters doesn't have an effect on the output.
Use #[serde(deny_unknown_fields)]
in all deserializable objects, or figure out another alternative.
Optionally, look into ways that still enable comments in the scene files: possibly a metadata field that has serde skip, or something else?