vak.config.validators.are_table_keys_valid

vak.config.validators.are_table_keys_valid(table_config_dict: dict, table_name: str, toml_path: str | Path | None = None) None[source]

Given a dict containing the configuration for a specific top-level table, loaded from a toml file, validate the key names for that table, e.g. vak.train or vak.predict.

This function assumes table_config_dict comes from the entire config_dict returned by vak.config.parse.from_toml_path(), accessed using the table name as a key, unlike are_keys_valid(). This function is used by the from_config_dict classmethod of the top-level tables.