Fix REST validation errors