Changes to enable validation for objects generated by InputFormatters.

UnitTests + FunctionalTests for the same.
Let me follow up with @harshgMSFT to understand what changes are needed here..