tgockel / json-voorhees

A killer modern C++ library for interacting with JSON.
http://tgockel.github.io/json-voorhees/
Apache License 2.0
128 stars 18 forks source link

Support "required" fields. #124

Closed vexingcodes closed 5 years ago

vexingcodes commented 5 years ago

Presently, using the serialization builder DSL, if a field is not present during extraction then that field is left uninitialized. I have been unable to find a mechanism to require all keys or require specific keys. If that doesn't exist yet in the code, I think it would be a worthy feature to add.