Type alias RawProcessing

RawProcessing: "escape" | "asString" | "parse" | undefined

Raw value processing policy.

Raw value may contain numeric value, null (--), or false (-). Without schema such value parsed accordingly to its syntax. Raw value processing policy may change this.

The policy is one of:

  • 'escape' or undefined (the default) to treat raw value as string, and escape output to avoid ambiguity. I.e. string like 123 will be serialized as '123.
  • 'asString' to treat raw value as string, and do not escape the output when possible. I.e. a string like 123 will be serialized as is.
  • 'parse' to parse raw value according to its syntax. This is the default behavior for schema-less processing, but not when string value expected by schema.

Note that if the value is nullable, the -- input is always treated as null.

Generated using TypeDoc