Skip to content

method.choice_option_dubious

A string choice option is empty or repeated

Type https://mthds.ai/errors/method.choice_option_dubious
Family method: The method as written, the validation vocabulary included.
Domain method: the method's author acts, by changing the method
Retry no: repeating the operation fails the same way
HTTP status none (warning)
Raised as an item of a validate verdict's warnings, which never makes a method invalid

What it means

An advisory finding: a choices list holds an empty string option, or two string options with the same value. Bundles written before option tables could hold such lists, so it never makes a method invalid; the same fault in an option table is refused as method.contract_fact_invalid.

What to do

Remove the empty option or the repeated one.

Next steps

A warning carries no step of its own, since it is an item of a validate verdict, so its reader takes one of the code's steps: the first when the reader is the domain's actor, the method's author, and the second for any other reader.

Reader Kind Detail
The domain's actor change_method Remove the empty or repeated option from the choices at '{field_path}'.
Any other reader contact_owner Ask the method's owner to remove the empty or repeated option from the choices at '{field_path}'.

Detail

The problem's detail is written from this template, filled with the occurrence's parameters:

The choices at '{field_path}' hold a string option that is empty or repeated (reason: {reason}).

Parameters

Every parameter is present on every occurrence of the code.

Name Type Description
field_path identifier The key path of the field or input slot whose choices hold the option.
reason one of empty_value, duplicate_value Whether a string option is the empty string, or repeats the value of another string option.

See also