Maxim-Mazurok/google-api-typings-generator

Deal with interface name collisions

Maxim-Mazurok opened this issue · 0 comments

For example, in https://walletobjects.googleapis.com/$discovery/rest?version=v1 there is JwtResource interface in schemas.
However, there's also jwt resource in the resources object, for which we generate JwtResource name.
I think I've already seen this previously.
A potential solution is to always prefix/postfix any schema with "schema" and any resource with "resource".
Will be a breaking change tho, but hopefully easy to fix for users.