from a directory with the included files, run the following:
$ npm install
$ npm run get
$ npm run synth
the last command will result in
.gen/providers/gitlab/user.ts:145:10 - error TS2300: Duplicate identifier 'resetPassword'.
145 public resetPassword() {
~~~~~~~~~~~~~
.gen/providers/gitlab/user.ts:171:14 - error TS2300: Duplicate identifier 'resetPassword'.
171 public get resetPassword() {
~~~~~~~~~~~~~
.gen/providers/gitlab/user.ts:174:14 - error TS2300: Duplicate identifier 'resetPassword'.
174 public set resetPassword(value: boolean ) {
if you then change the required version of cdktf and cdktf-cli to 0.0.17 in the package.json
, the above does not error
good generated provider by 0.0.17 (user.ts L112-119,131-137):
// password - computed: false, optional: true, required: false
private _password?: string;
public get password() {
return this._password;
}
public set password(value: string | undefined) {
this._password = value;
}
...
// reset_password - computed: false, optional: true, required: false
private _resetPassword?: boolean;
public get resetPassword() {
return this._resetPassword;
}
public set resetPassword(value: boolean | undefined) {
this._resetPassword = value;
}
bad generated provider by 0.0.18 (user.ts L137-151,170-183):
// password - computed: false, optional: true, required: false
private _password?: string;
public get password() {
return this.getStringAttribute('password');
}
public set password(value: string ) {
this._password = value;
}
public resetPassword() {
this._password = undefined;
}
// Temporarily expose input value. Use with caution.
public get passwordInput() {
return this._password
}
...
// reset_password - computed: false, optional: true, required: false
private _resetPassword?: boolean;
public get resetPassword() {
return this.getBooleanAttribute('reset_password');
}
public set resetPassword(value: boolean ) {
this._resetPassword = value;
}
public resetResetPassword() {
this._resetPassword = undefined;
}
// Temporarily expose input value. Use with caution.
public get resetPasswordInput() {
return this._resetPassword
}