Generate the swagger document immediately upon use by the controller