Added a flag to ignore validating sub-entities when using the validator