added validator errors to api generator