Make sure that the generated files validates

Signed-off-by: Harsh Gupta <gupta.harsh96@gmail.com>