cloudflare / cloudflare/foundations

Make deny_unknown_fields a runtime feature

Open
#209 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1.7k
Forks
133
Avg merge
1d 5h
Merged PRs (30d)
11

Description

`settings_deny_unknown_fields_by_default` is a useful feature (that's why its enabled by default), but in some applications it is desirable to have the _option_ to be strict. For example, be strict when validating new configs but permissive when parsing existing files from disk.

We should find a way to support such use cases. Maybe we can track which fields were not deserialized in the `Deserializer` impl?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.