Changing serialization of swagger models to produce correct authorization json format