Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dsoper2 opened this issue Jul 22, 2024 · 1 comment

Comments

@dsoper2
Copy link

dsoper2 commented Jul 22, 2024

When doing a target claim as described in the example issue at CiscoDevNet/intersight-python-utils#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
Copy link

mohamuni commented Sep 3, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants