I work on .NET core 7.0
syntax = "proto3";
option csharp_namespace = "IndustryAPI.Protos";
message ListOfStrings {
repeated string strings = 1;
}
enum VendorMode {
VendorMode_UNSPECIFIED = 0;
Shopping = 1;
Discovery = 2;
ShoppingAndDiscovery = 3;
}
message VendorModel {
string Id = 1;
string Name = 2;
string Channel = 3;
string Address = 4;
string ContactNummber = 5;
string Email = 6;
string Web = 7;
}
service VendorService {
rpc GetVendorBasicDetails(GetVendorBasicDetailsRequest) returns (GetVendorBasicDetailsResponse);
}
// requests
message GetVendorBasicDetailsRequest {
string channelId = 1;
string VendorCreatedDateStart = 2;
string VendorCreatedDateEnd = 3;
}
message GetVendorBasicDetailsResponse {
repeated VendorModel Vendor = 1;
}
this is vendor.proto
file.
In this model, web field is nullable value.
So, thats return error.
Exception was thrown by handler. ArgumentNullException: Value cannot be null
how to I define nullable field?