Required field constraint. More...
#include <constraints.hpp>
Required field constraint.
The field has to be present (checked by the format: anch-json raises anch::json::MappingError with MISSING_FIELD error code).
A null value is accepted only when the field can hold it ( std::optional , std::shared_ptr , std::unique_ptr or pointer): otherwise the format reports a constraint violation ( anch-json: CONSTRAINT_VIOLATION error code).