swagger parse for swagger spec