render proper json for swagger with auth