Created by: f18m
This MR modifies the MODEL C++ source code to throw an exception whenever trying to set an unsupported enum value inside the model class, instead of silently dropping the set() command.
This is consistent with the usage for the c++ restbed server of Boost::ptree which already throws exceptions in case of invalid data type translations (see https://www.boost.org/doc/libs/1_74_0/boost/property_tree/exceptions.hpp)
With this MR the caller can detect invalid JSON/schema provided as input to the REST APIs just by catching std::runtime_error exceptions. A possible improvement would be introducing a custom class for such exceptions...