Walther / clovers

Ray Tracing in Rust
https://walther.github.io/clovers/clovers/
13 stars 1 forks source link

Use #[serde(deny_unknown_fields)] #86

Open Walther opened 3 years ago

Walther commented 3 years ago

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?