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
When using ts-proto for 'useDate=string', the types are correctly generated as 'string | undefined'. However, when sending the response, fields designated as 'google.protobuf.Timestamp' end up throwing an error: 'Error serializing response: .v1.expiresAt: object expected'
Additionally, setting 'useDate=true', the response displays field values in the format { seconds: number, nanos: number }
When using ts-proto for
'useDate=string'
, the types are correctly generated as 'string | undefined'
. However, when sending the response, fields designated as 'google.protobuf.Timestamp' end up throwing an error:'Error serializing response: .v1.expiresAt: object expected'
Additionally, setting 'useDate=true', the response displays field values in the format
{ seconds: number, nanos: number }
The proto message
The options used for type generations
paths=source_relative, outputServices=generic-definitions, outputClientImpl=false, useDate=string, outputJsonMethods=true, useJsonName=true, stringEnums=true, useExactTypes=false,nestJs=true
The text was updated successfully, but these errors were encountered: