Changes to enable validation for objects generated by InputFormatters.

UnitTests + FunctionalTests for the same.
Yes, I'll do it in a separate PR..