The input string may be parsed when BigInt expected by schema. The string processing policy controls this behavior.
The policy is one of:
'parse' or undefined (the default) to parse the input string. If this fails, an error is reported. Note that
strings containing BigInt values should not start with 0n prefix.
'serialize' is the same as 'parse', but also serializes BigInt values as strings.
String value processing policy.
The input string may be parsed when BigInt expected by schema. The string processing policy controls this behavior.
The policy is one of:
'parse'
orundefined
(the default) to parse the input string. If this fails, an error is reported. Note that strings containing BigInt values should not start with0n
prefix.'serialize'
is the same as'parse'
, but also serializes BigInt values as strings.'reject'
to reject the input string.