Type alias StringProcessing

StringProcessing: "parse" | "serialize" | "reject" | undefined

String value processing policy.

The input string may be parsed when number 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.
  • 'serialize' is the same as 'parse', but also serializes numbers as strings. Note that in this case the NaN, Infinity and -Infinity values encoded as strings rather corresponding entities.
  • 'reject' to reject the input string.

Generated using TypeDoc