fix validation errors, add schema reference