Skip to main content

unexpected_field

No overview available.

def unexpected_field(
field_name: string,
expected_fields: list
) - > null

Raises a ValueError when an unexpected field is encountered during data processing or validation.

Parameters

NameTypeDescription
field_namestringThe name of the field that was not expected in the input data.
expected_fieldslistA collection of valid field names that were expected instead.

Returns

TypeDescription
nullThis function does not return a value as it always raises an exception.