Swap order of API object validation and model conversion