GitHub

ParseOptions

API reference for ParseOptions.

How parsing behaves. Options given when a decoder is made apply to each call; options given to a call override them key by key.

  • errors: "first" (default) stops at the first issue, "all" collects every one.
  • on_excess_property: "ignore" (default) drops keys a struct does not declare, "error" rejects them.
  • disable_checks: skip checks, still applying defaults and transformations.
  • concurrency: how many children of a product parse at once (as fx.for_each); sequential by default.
  • report_input: keep rejected values in issues and print them (Expected string, got 1). They may hold secrets.

Attributes

AttributeTypeDescription
errorsLiteral['first', 'all']
on_excess_propertyLiteral['ignore', 'error']
disable_checksbool
concurrencyConcurrency
report_inputbool