Reworked type validation, added accept header in generated service client