Byron / google-apis-rs

A binding and CLI generator for all Google APIs
http://byron.github.io/google-apis-rs
Other
1.02k stars 136 forks source link

Docs API (docs1) overwritten by DNS API (dns1) #306

Open arkus7 opened 3 years ago

arkus7 commented 3 years ago

Hi,

Thanks for all the work done on this project! As I was going through the generated code I noticed that docs1 client is actually about DNS API (same as here)

I think it's worth regenerating the API for docs1 :)

Byron commented 3 years ago

You are welcome! I took a look and it turns out that the docs1 API description is in fact a copy of dns for some reason. Turns out the Makefile is incorrectly generated and refers to the DNS API when trying to build the docs API.

Turns out that the docs API description isn't even there.

Could not open JSON file at etc/api/docs/v1/docs-api.json
[Errno 2] No such file or directory: 'etc/api/docs/v1/docs-api.json'

…which apparently doesn't prevent something to be generated for the API. The script also fails later, so maybe it would just skip the docs API entirely if it would get there.

I attempted a fix, but couldn't make it work and am now out of time. If you want to dig in, help is much appreciated.