Path
The Path
class is used to pass JSONPath expressions to assertion methods of the Check
class. It enables automatic handling of non-existent paths by raising NoDataError
when the specified path doesn't exist in the component data.
Constructor
json_path (str): A JSONPath expression to query component data
Usage
The primary use of the Path
class is to provide a wrapper around JSONPath expressions that will be automatically evaluated by assertion methods in the Check
class.
Last updated