CheckFailure.to_json#
- CheckFailure.to_json(with_display: Optional[bool] = None)[source]#
Return check failure as json.
Returned JSON string will have next structure:
>> class CheckFailureMetadata(TypedDict): >> check: CheckMetadata >> header: str >> display: List[Dict[str, str]]
>> class CheckMetadata(TypedDict): >> type: str >> name: str >> params: Dict[Any, Any] >> summary: str
- Parameters
- with_displaybool
controls if to serialize display or not (the parameter is deprecated and does not have any effect since version 0.6.4, it will be removed in future versions)
- Returns
- str