ioces / toshling

a Python client library for the Toshl API
MIT License
4 stars 1 forks source link

Missing JSON files to parse Schema #4

Closed jfthuong closed 3 years ago

jfthuong commented 3 years ago

Before, only "item.json" was missing to parse "top.json".

Currently, some additional files are missing when parsing "export.json":

[
        "export.filters.json",
        "export.format.json",
        "export.resource.json"
 ]

It would be better to have some code in generate.py that automatically generate dummy JSON (like currently done for item.json), like for example by having a while loop that generates dummy whenever there is an Exception like below (with a failsafe to prevent infinite loop):

json_ref_dict.exceptions.DocumentParseError: Failed to load base document of xxxxx.json#/.