code: function (operation, parameter) {
    // TODO the reference to operation.api is not available
    if (operation.api && operation.api.parameterMacro) {
      return operation.api.parameterMacro(operation, parameter);
    } else {
      return parameter.defaultValue;
    }
  }
docs: allows override of the default value based on the parameter being
  supplied