Skip to content

Error parsing Recipients #20

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

Closed
GPHofficial opened this issue Aug 26, 2019 · 3 comments
Closed

Error parsing Recipients #20

GPHofficial opened this issue Aug 26, 2019 · 3 comments
Assignees
Labels

Comments

@GPHofficial
Copy link

Library's method __deserialize from api_client.py is wrongfully parsing Recipient Class Objects into UserRecipient / TeamRecipients

Expected: {'type': 'user', 'id': '{UUID_HERE}'}
Actual: {'name': None}

Reproducing: Call list_alerts, and check the field of responders.

@GPHofficial
Copy link
Author

@davidban77
Copy link

Currently facing this issue as well

@zfr zfr self-assigned this Nov 6, 2019
@zfr zfr added the bug label Nov 6, 2019
@zfr
Copy link
Contributor

zfr commented Nov 6, 2019

Hi @GPHofficial and @davidban77

Thanks for bringing the issue. I sent a fix about the current problem. It used another DTO (Recipient) instead of Responder, and it causes that case. In the meantime, @GPHofficial was also right about the inheritance problem at the openapi-generator :D I tried to fix it temporarily by removing the inheritance props.

When I have time, I'll try to pull the latest openapi-generator updates to our repo. Then we can re-enable inheritance again.

Thanks,

@zfr zfr closed this as completed Nov 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants