You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 19, 2024. It is now read-only.
In case the RAML file ONLY has URLs with URL parameters (i.e. "/foo/{foo}") the generator is only spitting out in constructor.
{code}
setprototypeof(client, this)
{code}
but NO specific mappings like
{code}
this.bazz = new Resource5(client, '/bazz')
setprototypeof(client, this)
{code}
However, this causes this._client to be never set as the "client" created here is never injected.
Workaround:
Add setter in constructor:
{code}
this._client=client;
setprototypeof(client, this)
{code}
In case the RAML file ONLY has URLs with URL parameters (i.e. "/foo/{foo}") the generator is only spitting out in constructor.
{code}
setprototypeof(client, this)
{code}
but NO specific mappings like
{code}
this.bazz = new Resource5(client, '/bazz')
setprototypeof(client, this)
{code}
However, this causes this._client to be never set as the "client" created here is never injected.
Workaround:
Add setter in constructor:
{code}
this._client=client;
setprototypeof(client, this)
{code}