Skip to content
This repository has been archived by the owner on Feb 21, 2022. It is now read-only.

No (typed) field definitions in models, thus no autocompletion #82

Open
JosXa opened this issue Sep 21, 2020 · 0 comments
Open

No (typed) field definitions in models, thus no autocompletion #82

JosXa opened this issue Sep 21, 2020 · 0 comments

Comments

@JosXa
Copy link

JosXa commented Sep 21, 2020

I noticed that all the data contracts only have internal dicts instead of properly typed models. As I'm playing around with the awesome Pydantic library a lot recently, I just tried out a json-to-pydantic model generator and that worked out quite well:
https://gist.github.com/JosXa/eda7ef5eef7c8b6b48e5004cd8aea407

Maybe that's an idea how to add proper models (allowing for autocompletion) with little effort.

@JosXa JosXa changed the title No field definitions in models No (typed) field definitions in models Sep 21, 2020
@JosXa JosXa changed the title No (typed) field definitions in models No (typed) field definitions in models, thus no autocompletion Sep 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant