Refines input yml and adds validation build.