Client redeclared in this block when having schema with name Client
When generating a client using https://develop.opsramp.com/downloads/opsramp-tenancy-access-controls.v2.yaml, it has a schema named Client
opsramp/tenancy_controls/tenancy.gen.go:1127:6: Client redeclared in this block
are there any solution to this issue other than change the schema name?
Supposed there is a way to change code and use APIClient and APIServer instead of Client/Server. But this would brake back compatibility, so It should be done over some command line options.
I am newbie here, but able to make appropriate changes if there is no big objection about.
Ooops. It is already done. See examples/custom-client-type/cfg.yaml.
So this one should be closed.
output-options:
response-type-suffix: Resp
client-type-name: MyClient
Adding this fixed mine. Chaning the client name to something meaningful for you, and the response suffix.