Add handling for validation annotation.
Merge pull request #7 from michalschroeder/feature/output-array

Add handling for validation annotation.