check
check(
properties: dict[str, Any],
config: Config = Config(),
error: bool = False,
)Checks a Data Package’s properties against the Data Package standard.
Parameters
properties : dict[str, Any]-
A Data Package’s metadata from
datapackage.jsonas a Python dictionary. config : Config = Config()-
Configuration for the checks to be done. See the
Configclass for more details, especially about the default values. error : bool = False-
Whether to treat any issues found as errors. Defaults to
False, meaning that issues will be returned as a list ofIssueobjects. Will internally runexplain()on the Issues if set toTrue.
Returns
list[Issue]-
A list of
Issueobjects representing any issues found while checking the properties. If no issues are found, an empty list is returned.