You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error raised when requesting template details using python SDK but not when using requests. It would be nice to allow for arbitrary (especially when they might be unknown) fields to be null/None
pandadoc_client.exceptions.ApiTypeError: Invalid type for variable 'placeholder_name'.
Required value type is str and passed type was NoneType at
['received_data']['roles'][0]['preassigned_person']['placeholder_name']
Example with GET
importrequestsAPI_KEY=""TEMPLATE_ID=""# same template as previous exampleheaders= {
"Content-Type": "application/json",
"Authorization": f"API-Key {API_KEY}"
}
url="https://api.pandadoc.com/"+f"public/v1/templates/{TEMPLATE_ID}/details"res=requests.get(url, headers=headers)
template_dict=res.json()
type(template_dict.get("roles")[0].get("preassigned_person").get("placeholder_name"))
>>><class'NoneType'>
The text was updated successfully, but these errors were encountered:
Error raised when requesting template details using python SDK but not when using
requests
. It would be nice to allow for arbitrary (especially when they might be unknown) fields to be null/NoneExample with SDK
Raises
Example with GET
The text was updated successfully, but these errors were encountered: