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

Fix/update models: make homePhone optional, add Class type, add Telemetry rowData #47

Merged
merged 3 commits into from
Sep 23, 2024

Conversation

marcelbarbulescu
Copy link
Contributor

Follow-up to #44

@marcelbarbulescu
Copy link
Contributor Author

Sorry, I closed #44 by mistake.

Question: why do you use None types for some fields? (e.g. home_phone, postal_code)
Is it because you only saw null values before and don't know yet what data to expect?

@NodeJSmith
Copy link
Owner

Correct, I generated the pydantic models from the raw API response data using datamodel-code-generator, wherever my own data had things missing the classes were generated with None values. I suppose I could also go back from the apk and look at the Java classes to see what they define but that code is quite messy so I'm not sure how much work that would involve

@NodeJSmith NodeJSmith merged commit 6fbeb5e into NodeJSmith:main Sep 23, 2024
0 of 2 checks passed
@marcelbarbulescu marcelbarbulescu deleted the fix/update-models branch September 23, 2024 15:22
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

Successfully merging this pull request may close these issues.

2 participants