Skip to content

Problem

RFC 7807 Problem object (https://tools.ietf.org/html/rfc7807)

Properties

Name Type Description Notes
id str [optional]
type str A URI reference that identifies the problem type. This specification encourages that, when dereferenced, it provide human-readable documentation for the problem type. When this member is not present, its value is assumed to be \"about:blank\".
title str A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization (e.g., using proactive content negotiation;
status int The HTTP status code ([RFC7231], Section 6) generated by the origin server for this occurrence of the problem.
detail str A human-readable explanation specific to this occurrence of the problem. [optional]
instance str A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced. [optional]
parameters Dict[str, str] Problem parameters for e.g. request body attribute validation. This attribute is not in scope of RFC 7807.
timestamp datetime

Example

from libica.openapi.v3.models.problem import Problem

# TODO update the JSON string below
json = "{}"
# create an instance of Problem from a JSON string
problem_instance = Problem.from_json(json)
# print the JSON string representation of the object
print(Problem.to_json())

# convert the object into a dict
problem_dict = problem_instance.to_dict()
# create an instance of Problem from a dict
problem_from_dict = Problem.from_dict(problem_dict)

[Back to Model list] [Back to API list] [Back to README]