Creates a value type from its name.
The name is one of string, file, dir, int, or choices separated by |, e.g., json|yaml.
Name of the type.
AssertError if the name is not a known type and not a list of at least two non-empty choices.
Creates a value type from its name.
The name is one of string, file, dir, int, or choices separated by |, e.g., json|yaml.