update the swagger definitions