cisco-en-programmability / dnacentersdk

Cisco DNA Center Python SDK
https://dnacentersdk.readthedocs.io/en/latest/
MIT License
70 stars 33 forks source link

Configuration template import project - check_type error #139

Closed MUTHU-RAKESH-27 closed 8 months ago

MUTHU-RAKESH-27 commented 10 months ago

Prerequisites

Describe the bug I was running the Ansible module for the cisco.dnac.configuration_template_import_project, which in turn calls the SDK, raises an exception that the sdk check_type expects a dict or list but while calling the API it throws an error( expecting string instead of dict or list). Refer screenshots.

Expected behavior According to DNACenter's developer toolkit, the request body for /dna/intent/api/v1/template-programmer/project/importprojects (POST) has to be a string but the SDK expects a dict. (further details in screeshots).

Screenshots

Screenshot 2023-11-30 at 12 50 11 AM Screenshot 2023-11-30 at 12 51 08 AM

Environment (please complete the following information):

fmunozmiranda commented 8 months ago

Hi, @MUTHU-RAKESH-27 , temporaly please use parameter active_validation in SDK or validate_response_schema in ansible with False value. Actually we don´t have sufficient documentation for this endpoint. So it´s better if you just skip the validation.

Regards.