You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use Refit in my project where I want to be able to supply a value object as a query parameter. However it doesn't seem to work - it just omits the parameter. Is that expected behaviour or is it a bug?
Here is my value object:
public readonly record struct CustomerId
{
private readonly string _customerId;
public CustomerId(string customerId)
{
_customerId = customerId ?? throw new NullReferenceException("CustomerId cannot be null");
// (More validation is done here, but I've omitted here since it's irrelevant to the issue)
}
public override string ToString()
{
return _customerId;
}
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello!
I'm trying to use Refit in my project where I want to be able to supply a value object as a query parameter. However it doesn't seem to work - it just omits the parameter. Is that expected behaviour or is it a bug?
Here is my value object:
And here is my refit interface
Beta Was this translation helpful? Give feedback.
All reactions