CiscoDevNet / intersight-python

Cisco Intersight Python
Apache License 2.0
12 stars 4 forks source link

asset/DeviceClaim reports Invalid inputs given to generate an instance of 'MoBaseMo' although claim is successful #62

Open dsoper2 opened 3 months ago

dsoper2 commented 3 months ago

When doing a target claim as described in the example issue at https://github.com/CiscoDevNet/intersight-python-utils/issues/51 the following error is seen:

Exception: Invalid inputs given to generate an instance of 'MoBaseMo'. The input data was invalid for the allOf schema 'MoBaseMo' in the composed schema 'AssetDeviceClaim'. Error=Cannot deserialize input data due to invalid discriminator value. The OpenAPI document has no mapping for discriminator property 'ClassId'='' at path: ['received_data', 'permission_resources', 0]

The claim and resource reservation are successful though, so I'm not sure why the error occurs and what is wrong with the required MoBaseMo

mohamuni commented 2 months ago

Hi @dsoper2 ,

Thanks for reaching out to us

We are observing this issue as ClassID attribute in PermissionResources was empty in response sent by backend, empty ClassId is not a valid discriminator because of which SDK throws error as you have mentioned.

We have raised ticket with backend team to resolve this. We will keep you updated on progress from backend team.

Thank you