import check_datapackage as cdp
issue = cdp.Issue(
jsonpath="$.resources[2].title",
type="required",
message="The `title` field is required but missing at the given JSON path.",
)Issue
Issue(jsonpath: str, type: str, message: str)An issue found while checking a Data Package descriptor.
One Issue object represents one failed check on one field within the descriptor.
Attributes
jsonpath : string-
A JSON path format pointing to the field in the input object where the issue is located. For example,
$.resources[2].name. type : string-
The type of the check that failed (e.g., a JSON schema type such as “required”, “type”, “pattern”, or “format”, or a custom type). Used to exclude specific types of issues.
message : string-
A description of what exactly the issue is.