Fix #141. Update to support newer swagger specification.